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

Skip to content

Fixes issue #7751 - #7807

Closed
visheshmistry wants to merge 4 commits into
scikit-learn:masterfrom
visheshmistry:my-feature
Closed

Fixes issue #7751#7807
visheshmistry wants to merge 4 commits into
scikit-learn:masterfrom
visheshmistry:my-feature

Conversation

@visheshmistry

@visheshmistry visheshmistry commented Nov 1, 2016

Copy link
Copy Markdown

Reference Issue

Fixes #7751

What does this implement/fix? Explain your changes.

In scikit-learn/sklearn/metrics/classification.py under the function classification_report , a check is made to make sure that if the user enters the elements of target_names the size of that is checked with the size of labels. If the size is unequal, a warning is raised which will inform the user about the issue

Any other comments?

The additional file - test1.py is for testing purpose and I have deleted it in my further commit

Vishesh Mistry added 4 commits November 1, 2016 15:09
…ssification.py under the function classification_report , a check is made to make sure that if the user enters the elements of target_names the size of that is checked with the size of labels. If the size is unequal, a warning is raised which will inform the user about the issue
…ssification.py under the function classification_report , a check is made to make sure that if the user enters the elements of target_names the size of that is checked with the size of labels. If the size is unequal, a warning is raised which will inform the user about the issue
…ssification.py under the function classification_report , a check is made to make sure that if the user enters the elements of target_names the size of that is checked with the size of labels. If the size is unequal, a warning is raised which will inform the user about the issue
…ssification.py under the function classification_report , a check is made to make sure that if the user enters the elements of target_names the size of that is checked with the size of labels. If the size is unequal, a warning is raised which will inform the user about the issue
@lesteve

lesteve commented Nov 2, 2016

Copy link
Copy Markdown
Member

@vishesh9494 there is already a PR tackling this issue that was opened before yours #7802 by @kennmyers. Quickly looking at it it seems like #7802 is closer to being mergable than this PR so I am closing this one.

@vishesh9494 sorry for the duplicated work, don't hesitate to look for another issue to work on.

@lesteve lesteve closed this Nov 2, 2016
@visheshmistry

Copy link
Copy Markdown
Author

@lesteve It is alright. I am really looking forward to contributing here :)

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.

raise warning if labels and target_names have different length in classification_report

2 participants