Commit Graph

69 Commits

Author SHA1 Message Date
Daniela Fernandes 070ba08941
DOC Ensures that sklearn.metrics._plot.confusion_matrix.plot_confusion_matrix passes numpydoc validation (#22842) 2022-03-22 01:22:10 +01:00
Dimitri Papadopoulos Orfanos ee5a1b69d1
DOC, MNT Typos found by codespell (#22906) 2022-03-20 19:16:39 +01:00
Thomas J. Fan 13174b1659
ENH Adds im_kw to ConfusionMatrixDisplay (#20753)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-03-07 13:34:06 +01:00
slishak 6c09bab585
DOC Correct docstring for RocCurveDisplay.from_predictions (#22444) 2022-02-10 17:58:20 -05:00
Ross Barnowski 24106c2149
DOC Fix incorrect heading underline length in docstrings (#22278) 2022-01-24 09:58:33 -05:00
MrinalTyagi 863bbc07b3
DOC Ensures that plot_roc_curve passes numpydoc validation (#21547)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-11-29 15:15:14 +01:00
Guillaume Lemaitre 722dd1509c
TST add unit tests for current _get_response (#21041)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-18 11:20:41 -04:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Guillaume Lemaitre d21847c4f4
FIX use same API for CalibrationDisplay than other Display (#21031)
* FIX use same API for CalibrationDisplay than other Display

* Update sklearn/calibration.py

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

* iter

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-09-14 10:57:02 +02:00
Guillaume Lemaitre f46190846c
API add from_estimator and from_predictions to RocCurveDisplay (#20569)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-03 17:19:46 +02:00
Guillaume Lemaitre d4da690822
API add from_estimator and from_preditions to PrecisionRecallDisplay (#20552)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-08-31 10:51:32 +02:00
Lucy Liu da36f72cc2
ENH Add CalibrationDisplay plotting class (#17443)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-31 09:43:05 +02:00
Harutaka Kawamura c3db2cdbf5
DOC Use `numpydoc_use_plots` to embed figures for plotting APIs in the documentation (#20705)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-30 13:41:42 +02:00
Guillaume Lemaitre 8b23a61d87 FIX change error message in DetCurveDisplay test 2021-08-07 12:10:51 +02:00
shinehide c4bbc04cae
ENH improve error message in _get_response function (#20618) 2021-08-07 11:28:00 +02:00
Guillaume Lemaitre d753d4dc1a
API deprecate plot_det_curve in favor of display class methods (#19278) 2021-08-06 17:36:24 +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 383b53fa91
FIX Uses code literals in deprecated to prevent linking (#20410)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-28 15:49:19 +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
Loïc Estève 365234563e
Set up matplotlib agg backend at the beginning of the tests (#20230)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-06-17 17:45:53 +02:00
Thomas J. Fan 7f308675a7
FIX Uses the color max for colormap in ConfusionMatrixDisplay (#19784) 2021-06-07 16:39:34 -07: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
Marco Gorelli e3e4a778d3
MNT Remove absolute imports (#19668) 2021-03-14 12:36:49 +01:00
Thomas J. Fan 95fa18f278
TST Fixes docstring ordering and test_docstring_parameters (#19048) 2021-02-12 11:35:05 +01:00
Lucy Liu 5ef9fa443f
DOC replace plot_confusion_matrix in See Also section (#19277) 2021-01-26 10:27:41 +01:00
Guillaume Lemaitre 8c6a045e46
ENH/DEP add class method and deprecate plot function for confusion matrix (#18543)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2021-01-22 19:57:41 +01:00
Nadim Kawwa 1924b0aa89
DOC Updates confusion_matrix.py to match parameter in code(#18938) 2020-12-04 11:56:36 -05:00
Yakov Pchelintsev 90b9b5dbf0
FIX use unique values of y_true and y_pred in plot_confusion_matrix instead of estimator.classes_ (#18405)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-10-21 16:26:02 +02:00
Juan Carlos Alfaro Jiménez f3b64db3ed
MNT Add missing _deprecate_positional_args (#18436) 2020-09-23 12:54:42 +02: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 e030010c6c
ENH Adds plot_det_curve and associated display (#18176)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-28 22:36:52 -04:00
Clara Matos c3f25168fe
EHN Provide a pos_label parameter in plot_roc_curve (#17651)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-07-06 16:37:19 +02:00
Juan Carlos Alfaro Jiménez 9cd13a1fa1
FIX Change MRO for some estimators (#17837) 2020-07-05 13:52:42 +02:00
Avi Gupta 8dc143e621
ENH Add parameter in colorbar in plot_confusion_matrix (#17192)
Co-authored-by: Venkatachalam N <venky.yuvy@gmail.com>
2020-06-26 22:58:05 +02:00
Guillaume Lemaitre e5b99ea802
EHN Provide a pos_label parameter in plot_precision_recall_curve (#17569) 2020-06-24 15:05:09 +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
Kevin Markham 61442c3ce9
DOC Add "see also" links to and from "plot_roc_curve" (#17585)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-15 18:39:43 -07:00
Lucy Liu 7536b25bd3
MNT Fix spelling of _check_classifier_response_method (#17529) 2020-06-08 17:37:40 -04:00
Pardeep Singh 3f10622dd0
DOC Add examples to PrecisionRecall and ConfusionMatrix Display (#17492) 2020-06-07 16:50:22 -04:00
Lucy Liu c3fd8ec1ef
DOC Fix formating in plot_roc_curve docstring example (#17457) 2020-06-05 18:46:34 -04:00
Adrin Jalali 02309ffbda
API kwonly args in manifold, metrics, mixture, model_selection, multclass, multioutput (#16982) 2020-04-24 17:24:24 -04:00
Thomas J Fan 923b13ceda
API Adds defaults to Display Objects (#16933) 2020-04-23 13:11:45 -04:00
Kevin Markham 0a93fc9691
DOC Clarify what can be passed to the plotting utilities (#16893) 2020-04-10 18:27:02 -04:00
Rick Mackenbach 94f877b55e
Fix format of values in confusion matrix plot. (#16159) 2020-03-01 14:07:52 +11:00
Guillaume Lemaitre bbb1e3b6e9
BUG ensure that name is properly stored in the precision/recall display (#16505) 2020-02-23 17:14:03 +01:00
Guillaume Lemaitre 0ad7481bb1
BUG ensure that estimator_name is properly stored in the ROC display (#16500) 2020-02-23 16:47:44 +01:00
parsons-kyle-89 7366a5a4cc
BUG fix behaviour in confusion_matrix with with empty array-like as input (#16442) 2020-02-23 14:40:44 +01:00
talgatomarov 636e54a6c8
DOC Added example for plot_confusion_matrix (#16361) 2020-02-04 20:54:04 +11:00
Stephen Blystone eb3ad2dd5d FIX Add missing 'values_format' param to disp.plot() in plot_confusion_matrix (#15937) 2019-12-30 21:40:32 -06:00