Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PUBDEV-5804] Return variable importances as named tuples instead of regular tuples #2705

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

st-pasha
Copy link
Contributor

@st-pasha st-pasha commented Aug 1, 2018

Per discussion #python-client, we want model.varimp() to return named tuples instead of simple tuples.

The DimReduction class contained method .varimp() which was exactly the same as in BaseModel with the exception of the name of its json property. I merged this method with the base -- this should work assuming DimReduction has the same field names in its .varimp() output. If not, then we'd better be explicit about it.

As far as I can see we currently have very little test coverage of variable importance -- perhaps more tests can be added?

@st-pasha
Copy link
Contributor Author

st-pasha commented Aug 2, 2018

Wendy is on vacation. Erin, would you want to review/merge, or wait for Wendy's return?

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.

2 participants