Skip to content

TST make sure to test SearchCV on both classification and regression - #20202

Merged
lesteve merged 1 commit into
scikit-learn:mainfrom
glemaitre:test_search_cv
Jun 9, 2021
Merged

lesteve merged 1 commit into
scikit-learn:mainfrom
glemaitre:test_search_cv

Conversation

@glemaitre

Copy link
Copy Markdown
Member

We should use the product of the SearchCV, classifier, and regressor instead of a zip.
I don't think that I intended the current behaviour when creating the test.

@ogrisel ogrisel left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should yield 8 test cases instead of 4 previously? I think this is fine.

Alternatively one could have just swapped Ridge and LogisticRegression to keep 4 cases but ensured that to have:

  • GS + Ridge
  • RS + LR
  • GS + pipeline(PCA + LR)
  • RS + pipeline(PCA + Ridge)

with a comment to explain that this would offers tradeoff exhaustive of the combinations with test speed.

This way we have test for GS and RS both in regression and classification problem, both with and without pipelines.

@lesteve
lesteve merged commit a253826 into scikit-learn:main Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants