Source code for bob.fusion.base.algorithm.Empty

#!/usr/bin/env python

from __future__ import absolute_import, division

import logging

from .Algorithm import Algorithm

logger = logging.getLogger(__name__)


class Empty(Algorithm):
    """Empty algorithm
    This algorithm does not change scores by itself and only applies the
    preprocessors."""

[docs] def __init__(self, **kwargs): super(Empty, self).__init__(classifier=self, **kwargs)
[docs] def fit(self, X, y): pass
[docs] def decision_function(self, scores): return scores.flat