Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test for class_weights when using a dictionary and referring to an invalid class #8387

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

Closed
wants to merge 2 commits into from

Conversation

MMeketon
Copy link
Contributor

Reference Issue

What does this implement/fix? Explain your changes.

This adds a test called "test_class_weight_with_string_label" that sees if an illegal non-integer class defined in "class_weights" will raise the ValueError. When this test is run on the original code, there is an error that occurs but when run on the revised code it passes the test.

Any other comments?

@agramfort
Copy link
Member

@MMeketon travis complains. Please have a look why.

@jnothman
Copy link
Member

No doubt it complains because this commit should be part of #8319. @MMeketon, could you try to merge this commit into that PR's branch?

@MMeketon
Copy link
Contributor Author

MMeketon commented Feb 19, 2017 via email

@jnothman
Copy link
Member

jnothman commented Feb 19, 2017 via email

@MMeketon MMeketon closed this Feb 20, 2017
@MMeketon
Copy link
Contributor Author

Closed because the test was incorrectly put into this branch. It is now is the #8319 branch.

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.

3 participants