[scikit-learn] sample_weight for cohen_kappa_score
Victor.Poughon at cnes.fr
Tue Oct 4 05:10:04 EDT 2016
I had a go at a PR (with a caveat for testing):
De : scikit-learn [scikit-learn-bounces+victor.poughon=cnes.fr at python.org] de la part de Andreas Mueller [t3kcit at gmail.com]
Envoyé : lundi 3 octobre 2016 15:09
À : Scikit-learn user and developer mailing list
Objet : Re: [scikit-learn] sample_weight for cohen_kappa_score
Hm it sounds like "weights" should have been called "weighting" maybe?
Not sure if it's worth changing now, as we released it already.
And I think passing the weighting to the confusion matrix is correct.
There should be tests for weighted metrics to confirm that.
On 10/03/2016 05:21 AM, Poughon Victor wrote:
> I'd like to use samples weights together with sklearn.metrics.cohen_kappa_score,
> in a similar way to other metrics which have this argument. Is it as simple as
> forwarding the weights to the confusion_matrix call? 
> If yes I'm happy to work on the pull request.
> In that case the other argument "weights" might be confusing but it's too late
> to rename it, right?
> Victor Poughon
>  https://github.com/scikit-learn/scikit-learn/blob/dee786a/sklearn/metrics/classification.py#L331
> scikit-learn mailing list
> scikit-learn at python.org
scikit-learn mailing list
scikit-learn at python.org
More information about the scikit-learn