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

Skip to content

fixed issue #3450 for hamming loss #5439

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 3 commits into from
Closed

Conversation

achab
Copy link
Contributor

@achab achab commented Oct 19, 2015

added sample_weight support for hamming_loss in scikit-learn/sklearn/metrics/classification.py

@GaelVaroquaux
Copy link
Member

You should add a test please. For instance checking that putting a weight of 2 on a sample is equivalent to duplicating it.

@GaelVaroquaux
Copy link
Member

Also, I think that it would be good to compare to the scipy implementation in a simple test, now that we are no longer using it.

@raghavrv
Copy link
Member

Partly fixes #3450 and supersedes #4067

@arjoly
Copy link
Member

arjoly commented Oct 19, 2015

I suggest re-using the common metric tests which are in https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/metrics/tests/test_common.py

@achab achab closed this Oct 19, 2015
@GaelVaroquaux
Copy link
Member

Why was this PR closed?

@TomDLT
Copy link
Member

TomDLT commented Jan 4, 2016

#5465 is merged

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.

5 participants