Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pipelines
Commits
95624011
Commit
95624011
authored
Mar 26, 2020
by
Tiago de Freitas Pereira
Browse files
requires_fit is not all available all the time
parent
49eaeff1
Pipeline
#38381
failed with stage
in 3 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pipelines/mixins.py
View file @
95624011
...
...
@@ -245,7 +245,7 @@ class SampleMixin(BaseEstimator):
# See: https://scikit-learn.org/stable/developers/develop.html
# if the estimator does not require fit or is stateless don't call fit
tags
=
self
.
_get_tags
()
if
tags
[
"stateless"
]
or
not
tags
[
"requires_fit"
]:
if
tags
[
"stateless"
]
or
(
"requires_fit"
in
tags
and
not
tags
[
"requires_fit"
]
)
:
return
self
# if the estimator needs to be fitted.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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