Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pipelines
Commits
6e69df75
Commit
6e69df75
authored
Mar 26, 2020
by
Tiago de Freitas Pereira
Browse files
To use _gettags you need to extend BaseEstimator
parent
6736926a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/pipelines/mixins.py
View file @
6e69df75
...
...
@@ -7,7 +7,7 @@ import cloudpickle
import
functools
import
bob.io.base
from
sklearn.preprocessing
import
FunctionTransformer
from
sklearn.base
import
TransformerMixin
from
sklearn.base
import
TransformerMixin
,
BaseEstimator
from
sklearn.pipeline
import
Pipeline
from
dask
import
delayed
import
dask.bag
...
...
@@ -191,7 +191,7 @@ def _make_kwargs_from_samples(samples, arg_attr_list):
return
kwargs
class
SampleMixin
:
class
SampleMixin
(
BaseEstimator
)
:
"""Mixin class to make scikit-learn estimators work in :any:`Sample`-based
pipelines.
Do not use this class except for scikit-learn estimators.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment