Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove loss=kneighbours from the complex pipelin
  • Loading branch information
PGijsbers committed Oct 17, 2022
commit 85b7312a4965bb5ca445df10a606a9d55ca05608
Original file line number Diff line number Diff line change
Expand Up @@ -1441,9 +1441,7 @@ def test_deserialize_complex_with_defaults(self):
"Estimator",
sklearn.ensemble.AdaBoostClassifier(
sklearn.ensemble.BaggingClassifier(
sklearn.ensemble.GradientBoostingClassifier(
sklearn.neighbors.KNeighborsClassifier()
)
sklearn.ensemble.GradientBoostingClassifier()
)
),
),
Expand All @@ -1458,7 +1456,6 @@ def test_deserialize_complex_with_defaults(self):
"Estimator__n_estimators": 10,
"Estimator__base_estimator__n_estimators": 10,
"Estimator__base_estimator__base_estimator__learning_rate": 0.1,
"Estimator__base_estimator__base_estimator__loss__n_neighbors": 13,
}
else:
params = {
Expand All @@ -1467,7 +1464,6 @@ def test_deserialize_complex_with_defaults(self):
"Estimator__n_estimators": 50,
"Estimator__base_estimator__n_estimators": 10,
"Estimator__base_estimator__base_estimator__learning_rate": 0.1,
"Estimator__base_estimator__base_estimator__loss__n_neighbors": 5,
}
pipe_adjusted.set_params(**params)
flow = self.extension.model_to_flow(pipe_adjusted)
Expand Down