Commit Graph

8 Commits

Author SHA1 Message Date
trevorstephens f2431db3ec add test for None class_weights 2015-02-05 07:42:13 -08:00
trevorstephens 965bf51636 use safe in1d, use compute_sample_weight in ridge 2015-02-01 14:28:01 -08:00
trevorstephens c5fadff91c add compute_sample_weight util 2015-01-31 18:26:41 -08:00
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00
Manoj-Kumar-S 566237dbab FIX: Label encoding done in compute_class_weight
Changed API such that weight[i] corresponds to sorted_weight[i].
2014-03-01 17:04:55 +01:00
Andreas Mueller ffad26a299 FIX compute_class_weight edge case 2013-03-06 23:41:24 +01:00
Lars Buitinck dc2c5c42c9 FIX + TST + DOC compute_class_weight
Fixes #1746, #1747. Bug reported and fix proposed by @gatagat.
2013-03-06 22:59:02 +01:00
Lars Buitinck 6bf90fe436 TST compute_class_weight in utils 2013-03-06 21:35:54 +01:00