Commit Graph

39 Commits

Author SHA1 Message Date
Alexandre Gramfort b6a5ed2aab Merge pull request #5465 from massil94/dev-massil
[MRG+1] partly fixed issue #3450 for hamming loss
2015-10-21 16:46:26 +02:00
Massil 52d0c89ee5 deleted a commented line (line 1464 in sklearn/metrics/classification.py) 2015-10-20 18:53:46 +02:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Massil a0fc0edda1 changed weighting in hamming_loss in sklearn/metrics/classification.py 2015-10-19 17:36:25 +02:00
Massil bf8f3f119a fixed issue #3450 for hamming loss 2015-10-19 11:40:23 +02:00
Gael Varoquaux 7ce32d7229 Merge pull request #4253 from Flimm/doc-precision_recall_fscore_support
[MRG + 1] Add example for precision_recall_fscore_support
2015-08-30 13:00:17 +01:00
Raghav R V 103f504734 DOC revert the documentation changes 2015-08-11 22:27:15 +05:30
Raghav R V 94891f0db4 MAINT deprecate seq of seq in metrics fully with tests
TST Make sure all multilabel metrics raise ValueError on seq of seqs
2015-08-11 22:27:14 +05:30
Raghav R V 664d78eb7c MAINT Remove support for the deprecated sequence of sequences
MAINT Remove sequence of sequence support from datasets
MAINT Remove return_indicator param
MAINT Remove multilabel-seq test in OVR
MAINT Remove multilable-seq test in check_cv
MAINT Remove multilabel seq test in label_binarizer
TST type_of_target returns "unknown" for multilabel-sequence types
TST _check_targets should raise a ValueError
DOC show multilabel indicator as an example; remove return_indicator param
DOC use consistent lower case y for target
2015-08-11 22:26:44 +05:30
Lars Buitinck b802ca2f1b ENH: add Cohen's kappa score to metrics 2015-07-30 17:27:48 +02:00
Joel Nothman 019fc9b8e7 ENH labels parameter in P/R/F may extend or reduce label set 2015-06-09 01:02:57 +10:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
scls19fr c4bbb58ff5 Update confusion_matrix docstring
Improve `confusion_matrix` docstring with labels parameters usage
2015-04-27 20:51:16 +02:00
scls19fr 29eb6bfdfc Update confusion_matrix docstring
Improve `confusion_matrix` docstring with labels parameters usage
2015-04-27 14:13:31 +02:00
Loïc Estève a13a5859e8 DOC remove sphinx warnings when generating the doc
and fixes a few other doc problems while I was at it.

The main take-home message is to remember that you need a backslash when
your parameter type description exceeds one line.
2015-03-18 15:49:30 +01:00
Saket Choudhary 6544a4cb51 MAINT: Remove reimport 2015-03-11 15:08:35 -07:00
Olivier Grisel 681352827b Merge pull request #4192 from jnothman/binary_iff_binary
[MRG+2] P/R/F: in future, average='binary' iff 2 labels in y one of which is pos_label
2015-03-03 09:21:36 +01:00
Jan Hendrik Metzen 6bf5d7e2c8 ENH Brier-score loss metric for classifiers
The Brier score allows to evaluate the quality of the predicted probabilities of a classifier. It is defined as  the mean squared difference between (1) the predicted probability assigned to the possible outcomes for an item and (2) the actual outcome.
2015-02-20 19:37:11 +01:00
David D Lowe 1250974b57 Shrink precision_recall_fscore_support's doc again 2015-02-19 10:23:23 +00:00
David D Lowe b649df61d9 Shrink the doc for precision_recall_fscore_support 2015-02-18 13:07:07 +00:00
David D Lowe 2e414d7265 Add example for precision_recall_fscore_support
The first example did not demonstrate average=None, it now does.

The second example demonstrates that the values do not have to be
integers, they can be strings, and it also demonstrates that the order
of the results is determined by the labels argument.
2015-02-16 17:32:06 +00:00
Fabian Pedregosa dbc5d707c6 Change loss names for LinearSVC and LinearSVR()
the names are now consistent across methods

In LinearSVC:
   'l1' -> 'hinge'
   'l2' -> 'squared_hinge'
In LinearSVR:
   'l1' -> 'epsilon_insensitive'
   'l2' -> 'squared_epsilon_insensitive'
2015-02-09 11:09:16 +01: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
Joel Nothman 4fcf20a5d2 TST/FIX in future, average='binary' iff 2 labels in y one of which is pos_label 2015-02-02 00:18:08 +11:00
Andreas Mueller fd9b03a048 sort labels in precision_recall_fscore_support 2015-01-26 17:07:30 -05:00
Joel Nothman 081a554698 FIX P/R/F metrics and scorers are now for binary problems only by default
Scorers for different average parameters have been added.
2014-12-09 13:56:51 +11:00
Saurabh Jha d21d6dde57 Sample weight support for hinge loss 2014-11-05 22:34:40 +01:00
Saurabh Jha 8eee4bc7e1 Implements Multiclass Hinge loss 2014-11-03 15:18:47 +01:00
Ian Gilmore 20a5952fe5 ENH added digits as optional arg for classification_report 2014-10-13 10:36:19 +11:00
Lars Buitinck f38c1ca3e7 Merge branch 'pr/3395' 2014-08-12 20:41:13 +02:00
Jatin Shah fe8e7199f4 Add sample_weight parameter to metrics.log_loss
- Also modified binary output & multiclass tests in
    test_sample_weight_invariance to test for prediction
    inputs as probabilities
  - Updated What's New
2014-08-06 11:27:29 +02:00
MechCoder 3edfa3cf17 Max iter param in Liblinear is now softcoded 2014-08-01 12:15:57 +02:00
Joel Nothman 15be75ef74 DOC more precise input type for multilabel metrics 2014-07-30 22:13:42 +10:00
Joel Nothman 0e31553de5 ENH Sparse multilabel target support
All multilabel metric calculation is now performed efficiently over
sparse CSR matrices.
2014-07-30 22:13:11 +10:00
Jatin Shah 1b2833aeb0 Add sample_weight parameter to metrics.jaccard_similarity_score
- Include this metric in sample_weight test in tests/test_common.py
2014-07-30 10:15:15 +02:00
Arnaud Joly 85c9c84bc7 MAINT move log_loss and hinge_loss to the classification metrics 2014-07-22 14:27:42 +02:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Arnaud Joly 00d73496e0 DOC improve documentation and distinguish each module 2014-07-19 17:22:31 +02:00
Arnaud Joly 6d881d3fb1 MAINT split sklearn/metrics/metrics.py 2014-07-19 14:37:52 +02:00