Closed
Labels
Description
Reproduce with:
import openml
import sklearn.pipeline
import sklearn.preprocessing
import sklearn.feature_selection
import sklearn.svm
#flow = openml.flows.get_flow(7103)
flow = sklearn.pipeline.Pipeline(
[
('imputation', sklearn.preprocessing.Imputer()),
('onehot', sklearn.preprocessing.OneHotEncoder(handle_unknown='ignore',
categorical_features=[])),
('variancethreshold', None),
('classifier', sklearn.svm.SVC())
]
)
task = openml.tasks.get_task(3)
#run = openml.runs.run_flow_on_task(task, flow)
run = openml.runs.run_model_on_task(task, flow)
follow up of issue #479
Activity
janvanrijn commentedon Jun 19, 2018
Current Outcome:
What would be the expected outcome?
mfeurer commentedon Jun 20, 2018
The
variancethresholdshould be part of the expected flow parameters.Neeratyoy commentedon Nov 12, 2019
Using sklearn version
0.21.3, using the modified exampled from above as mentioned below, the error doesn't seem to occur.Also,
flow.parametersdoes contain variancethreshold as null in the serialized string.Can this issue be closed or am I missing something?
mfeurer commentedon Nov 12, 2019
I don't think you're missing anything.
But as we support the passthrough now, what do you think about actively forbidden the
Noneto make the behavior consistent and to keep that step in the pipeline?Neeratyoy commentedon Nov 12, 2019
Sure.
I'll see if I can add it to #866.
mfeurer commentedon Nov 12, 2019
That would be great!
Neeratyoy commentedon Nov 15, 2019
We have taken the decision to not provide support None as an estimator placeholder, from the OpenML end, and encourage users to use 'drop' or 'passthrough' wherever sklearn supports so.
This has been implemented in #866.