logo

... scikit metrics: sample weight



Notes

To run the whole thing with sample_weight, you only need to run;

grid.fit(X, y, sample_weight=np.log(1 + df['Amount']));

Note that we're not using the sample_weight in our own custom scorer, but you should see a huge effect on the metric.

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.