Skip to content
Snippets Groups Projects
Commit e3e4e972 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[black]

parent bb65f62d
No related branches found
No related tags found
2 merge requests!192Redoing baselines,!180[dask] Preparing bob.bio.base for dask pipelines
......@@ -32,7 +32,7 @@ class Linearize(Extractor):
data : 1D :py:class:`numpy.ndarray`
The extracted feature vector, of the desired ``dtype`` (if specified).
"""
"""
assert isinstance(data, numpy.ndarray)
linear = numpy.reshape(data, data.size)
......
......@@ -4,6 +4,7 @@
from sklearn.base import TransformerMixin, BaseEstimator
from bob.bio.base.preprocessor import Preprocessor
class PreprocessorTransformer(TransformerMixin, BaseEstimator):
"""
Scikit learn transformer for :any:`bob.bio.base.preprocessor.Preprocessor`.
......@@ -18,13 +19,13 @@ class PreprocessorTransformer(TransformerMixin, BaseEstimator):
"""
def __init__(
self,
instance,
**kwargs,
self, instance, **kwargs,
):
if not isinstance(instance, Preprocessor):
raise ValueError("`instance` should be an instance of `bob.bio.base.preprocessor.Preprocessor`")
raise ValueError(
"`instance` should be an instance of `bob.bio.base.preprocessor.Preprocessor`"
)
self.instance = instance
super().__init__(**kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment