Skip to content

[WIP] minimize validation of X in adaboost - #8304

Closed
dalmia wants to merge 1 commit into
scikit-learn:masterfrom
dalmia:7768
Closed

dalmia wants to merge 1 commit into
scikit-learn:masterfrom
dalmia:7768

Conversation

@dalmia

@dalmia dalmia commented Feb 6, 2017 •

Copy link
Copy Markdown
Contributor

Reference Issue

Fixes #7768

What does this implement/fix? Explain your changes.

This removes the restriction on X to be 2D and transfers the duty of validation of X to the base estimator.

Any other comments?

This has been implemented for only AdaboostClassifier till now. If this seems fine, will extend it to other ensembles. Also, docstring hasn't been updated yet.

@dalmia

dalmia commented Feb 6, 2017

Copy link
Copy Markdown
Contributor Author

Estimators like MultinomialNB, SVC, etc. don't allow ndim > 2. Hence, I haven't found any suitable example where I could test that my implementation works and the current one fail. Please provide suggestions.

@jnothman jnothman 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.

This still requires that X be converted to an ndarray (not pandas), that it is finite, and selects sparse types whose preference should be determined by the base estimator, etc. I don't think X needs any validation. Does y? Read the code, work it out. This will depend on the ensemble technique.

@GaelVaroquaux

GaelVaroquaux commented Feb 7, 2017 via email

Copy link
Copy Markdown
Member

@jnothman

jnothman commented Feb 7, 2017 via email

Copy link
Copy Markdown
Member

@amueller

amueller commented Aug 7, 2019

Copy link
Copy Markdown
Member

fixed in #13174.

@amueller amueller closed this Aug 7, 2019
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.

Minimize validation of X in ensembles with a base estimator

4 participants