Skip to content

change get_feature_names function of the PolynomialFeatures class - #13715

Closed
therickli wants to merge 1 commit into
scikit-learn:masterfrom
therickli:master
Closed

therickli wants to merge 1 commit into
scikit-learn:masterfrom
therickli:master

Conversation

@therickli

Copy link
Copy Markdown

Reference Issues/PRs

dmlc/xgboost#4228

What does this implement/fix? Explain your changes.

Spaces in feature name is not a good idea, it can cause parse problems. For example, in xgboost library, the plot tree function won't work if there are spaces in feature name. See dmlc/xgboost#4228

Any other comments?

@chyunsu3

chyunsu3 commented Jun 26, 2019 •

Copy link
Copy Markdown

@therickli With dmlc/xgboost#4602, XGBoost can now handle feature names with spaces.

@jnothman

jnothman commented Jun 27, 2019 via email

Copy link
Copy Markdown
Member

@rth

rth commented Jul 3, 2019 •

Copy link
Copy Markdown
Member

Thanks for your PR @therickli !

Spaces in feature name is not a good idea, it can cause parse problems.

I'm not sure we have strict rules about that. In any case now that we do have spaces in feature names, changing that would result in non-backward compatible changes and in this case that cost would IMO outweight the benefits (particularly that the underlying issue was fixed in xgboost).

Closing, sorry.

@rth rth closed this Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants