Commit Graph

67 Commits

Author SHA1 Message Date
Ming-Yang Ho 7f1c6c367d
DOC improve phrasing precision recall (#22924) 2022-03-23 12:01:18 +01:00
WeijiaDu 6eb25ca8db
DOC fix numpydoc errors in classification_report (#22803)
* fix classification_report errors in NumpyDoc

* DOC fix numpydoc errors in classification_report

Co-authored-by: Weijia DU <weijia@Weijias-2.local>
2022-03-13 10:37:13 +01:00
poloso 7645845e76
DOC Ensures that function passes numpydoc validation: f1_score (#22358)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-09 16:42:23 +01:00
JSchuerz 4a52eb6de9
DOC Use :doi: and :arxiv: directives for references (#22603)
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-02 15:15:44 +01:00
GAURAV CHOUDHARY 73e605a1c2
DOC Ensures that precision_recall_fscore_support passes numpydoc validation (#22472)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-16 11:10:18 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Jake Cowton 08e0216784
DOC Updated documentation to show jaccard score usage for image comparison (#21978)
* FIX Updated jaccard score documentation

Docs now show 2D jaccard score usage for image comparison

* Updated jaccard_score docs to use micro avg in 2d comparison
2022-01-21 18:51:08 +01:00
Mitzi bcdbf7d303
DOC Ensures that balanced_accuracy_score passes numpydoc validation (#21478) 2021-11-07 08:51:33 +01:00
Mitzi 0003edf9b3
DOC Ensures that recall_score passes numpydoc validation (#21495) 2021-11-05 16:02:41 +01:00
Olivier Grisel 2571cb2989
Improve validation messages with infinite data (#21219)
* Improve validation messages with infinite data

* Extend and fix validation tests

* Test and fix extended error message

* data_name => input_name

* Mention estimators that natively support missing values

* More informative error message

* cosmetic

* typo

* Fix broken tests

* Fix test_knn

* Add changelog entry

* Fix broken test for param search models

* Missing input names

* Allow Y and y in estimator checks

* Add missing input names

* Fix input_name for FunctionTransformer

* More missing input names

* Update test

* More test fixes on scores

* Simplify message to avoid to make generic fallback meaningful

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* More informative estimator checks failure messages

* Make sure the estimator name is passed correctly in _validate_data

* Simplify calls to _validate_data

* Handle estimator name in private _check_y helper

* More specific error message

* Add estimator to check_X_params and check_y_params

* Add .. versionadded flags in public docstrings

* Update changelog

* Improve _validate_data's docstring

* Typo in doc/whats_new/v1.1.rst

* Make _check_estimator_name return None if estimator == None

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* check_params dict updates with style

* Increase test coverage

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 15:59:57 +02:00
Mitzi d156766f4a
DOC Ensures that precision_score passes numpydoc validation (#21479) 2021-10-29 15:49:04 +02:00
Mitzi f1bf92238d
DOC Ensures that confusion_matrix passes numpydoc validation (#21496) 2021-10-29 15:42:35 +02:00
Mitzi ae69f9de3e
DOC Ensures that zero_one_loss passes numpydoc validation (#21450) 2021-10-25 10:47:21 +02:00
Mitzi 66df3ac193
DOC Ensures that sklearn.metrics._classification.hamming_loss passes numpydoc validation (#21449) 2021-10-25 10:46:49 +02:00
Mitzi 9eb6f11053
DOC Ensures that sklearn.metrics._classification.accuracy_score passes numpydoc validation (#21441)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-25 10:17:43 +02:00
Vladimir Chernyy e34b64c7ac
DOC improve wording of the F1 score as a harmonic mean (#21390) 2021-10-21 14:05:35 -07:00
Dimitri Papadopoulos Orfanos 10a5468e90
DOC Remove some str/unicode leftovers from Python 2 (#21270)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-08 13:55:15 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Juan Martin Loyola ea787bf44f
DOC fix typos in metrics/_classification.py (#20944) 2021-09-06 11:25:55 +02:00
Laveen Bagai 986d8f2524
DOC Removed duplicate word "and" in metrics/_classification.py (#20873) 2021-08-28 10:27:06 -04:00
OGordon100 f3067cb620
DOC Change f_score to f1_score (#20708) 2021-08-08 09:33:54 -04:00
Felix Hafner cdc486a91a
DOC fix note in accuracy docstring regading relation with jaccard score (#19347)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-04 23:10:22 +02:00
Guillaume Lemaitre 772ffd94bc DOC add cross-reference in multilabel_confusion_matrix 2021-07-29 17:58:26 +02:00
Michal Karbownik 39f37bb63d
DOC make docstring consistent regarding None in metrics (#19718)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-27 14:05:47 +02:00
Tobias Uhmann c2091a20f5
DOC Add multilabel example for precision, recall and F1 (#19591)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-07-27 13:49:30 +02:00
Timothy Wolodzko a5a9d1776e
DOC add that recall with weighted average is equal to accuracy (#20076) 2021-07-23 11:31:48 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Conner Shen 64bafa313e
FIX mcc zero divsion (#19977) 2021-06-03 12:15:30 +02:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
PierreAttard f4e692c087
ENH Raises error in hinge_loss when 'pred_decision' is invalid (#19643)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-03-12 18:45:00 -05:00
Jon Crall 598045569c
ENH Speedup confusion_matrix (#9843)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-03-11 10:25:13 -05:00
Agamemnon Krasoulis 462694a1e2
DOC Balanced accuracy score adjusted doc fix (#19309) 2021-02-01 21:01:41 +01:00
Lucy Liu 5ef9fa443f
DOC replace plot_confusion_matrix in See Also section (#19277) 2021-01-26 10:27:41 +01:00
Matthew Calcote c9677d6a7d
DOC Typo addressed in confusion_matrix docstring (#18979) 2020-12-10 10:19:03 -05:00
Guillaume Lemaitre 96b86b619f
MNT make error message consistent in brier_score_loss (#18183)
* MNT make error message consistent in brier_score_loss

* iter

* TST change error matching

* PEP8

* TST check consistent error message

* STY

* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* iter

* cleaner

* iter

* iter

* iter

* rename function with better name

* iter

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-29 17:30:06 -04:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Albert Villanova del Moral 9b1f746ca4
DOC add display in See Also for plotting functions and additional docstring fixes (#18314) 2020-09-03 16:08:23 +02:00
Guillaume Lemaitre a54cb47c74
FIX improve error message with string-encoded target in metrics (#18192)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-02 13:01:13 -04:00
Cary Goltermann b229a66306
FIX fix hinge_loss when labels are provided and not inferred from y_true (#17935)
Co-authored-by: Ultramann <cgoltermann@kpmg.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-24 09:16:05 +02:00
Richard Decal 2ab500255d
ENH added zero_division param to jaccard metric (#17866)
Co-authored-by: Joseph Willard <joseph@sirbotsy.sirbotsy>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 20:44:06 +02:00
Guillaume Lemaitre 7669c2bfd6
DOC correct formatting of multilabel confusion matrix (#18193) 2020-08-19 20:37:45 +10:00
Christian Lorentzen e0abd262ea
DOC improve model evaluation a bit (#18166) 2020-08-17 07:55:57 -04:00
Lucy Liu 854f649307
DOC Expand Brier score, fix docstring (#18051)
* fix brier

* fix brier

* add ref

* add ref for lint

* Add link to PDF for calibration book chapter.

* Fix broken repeated ref by using qualified identifier

* Fix indentation

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-08-13 19:25:01 -04:00
Lucy Liu d5caba0abc
DOC Use math notation in log_loss metric (#18049) 2020-08-01 10:05:42 +02:00
Shubhanshu Mishra 73caba5dab
Fix #16998 classification_report with output_dict=True should not raise AttributeError (#17777) 2020-07-29 07:36:56 +10:00
Nicolas Hug 93f0216c24
DOC minor update to classification_report docstring (#16899)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
2020-07-09 11:37:56 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Kevin Markham 6c384a6403
DOC Add "see also" links to and from new plotting functions (#17615)
* add See Also links to and from plot_precision_recall_curve

* add See Also links to and from plot_confusion_matrix
2020-06-16 21:46:20 -04:00
genvalen 3a4ef05185
DOC update default docstrings in metrics module to follow guideline (#17517)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2020-06-15 15:31:29 +02:00