sklearn GridSearchCV not using sample_weight in score function

后端 未结 2 1070
误落风尘
误落风尘 2020-12-28 19:56

I have data with differing weights for each sample. In my application, it is important that these weights are accounted for in estimating the model and comparing alternative

2条回答
  •  时光取名叫无心
    2020-12-28 20:36

    Just pointing out that there is an ongoing effort to support this important feature: https://github.com/scikit-learn/scikit-learn/pull/13432

    But it seems that because of backward compatibility issues and the desire to tackle the more general problem of passing arbitrary sample related information it is taking a bit too long. The last attempt seems to be: https://github.com/scikit-learn/scikit-learn/pull/16079

    Here is a good review of the issue: http://deaktator.github.io/2019/03/10/the-error-in-the-comparator/

提交回复
热议问题