trevorstephens
2738d59ab4
fix for missing classes found in y #4327
2015-11-16 16:36:01 -08:00
Arnaud Rachez
62633f701b
Addressed comments on PR #5451
2015-10-21 10:24:23 +02:00
Arnaud Rachez
5db2adf93c
MAINT Removed deprecated stuff.
2015-10-21 10:24:23 +02:00
Andrew Lamb
581056774a
Fix check in `compute_class_weight`.
...
In https://github.com/scikit-learn/scikit-learn/issues/4921 , if a key in `class_weights`, a user-specified dictionary of classes, is not present in `classes`, an error should be raised.
Added unittest.
2015-09-12 10:19:24 -07:00
Andreas Mueller
eedc1cddab
Use more natural class_weight="auto" heuristic
2015-06-01 12:49:53 -04:00
Gilles Louppe
420daac269
Merge pull request #4190 from trevorstephens/refactor_cw
...
MRG+2: Refactor - Farm out class_weight calcs to .utils
2015-02-06 08:24:27 +01:00
trevorstephens
965bf51636
use safe in1d, use compute_sample_weight in ridge
2015-02-01 14:28:01 -08:00
Loïc Estève
67dcd99d82
TST fix tests with numpy 1.6.1
...
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01: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
Robert Layton
dacfd8bd5d
DOC: Replaced all BSD style licenses with "BSD 3 clause"
...
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!
Removed duplicate "3 clause, 3 clause"
Removed trailing period if exists
Fixed some missed licences, still about 50 to do, but those can be automated
Think I got the last of them.
Apparently me and sed have different ideas of regex.
Found a few more
2013-04-30 08:34:46 +02:00
Stefano Lattarini
67ece78da4
COSMIT various typofixes
...
As suggested by codespell <https://github.com/lucasdemarchi/codespell >
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-04-11 21:22:14 +02:00
Lars Buitinck
29ed168831
BUG fix compute_class_weights issue in SGD
...
Fixes #1749 .
2013-03-08 17:33:08 +01:00
Andreas Mueller
ffad26a299
FIX compute_class_weight edge case
2013-03-06 23:41:24 +01:00
Lars Buitinck
9633d9d46c
ENH use bincount in compute_class_weight
...
As suggested by @amueller.
2013-03-06 23:04:08 +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
Andreas Mueller
59b5602346
DOC more accurate comment in class weight computation
2013-01-12 18:37:08 +01:00
Andreas Mueller
1c1538af87
ENH move utility function into dedicated file, not __init__.py
2013-01-03 13:28:10 +01:00