Commit Graph

13 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos d4d5f8c7e0
MAINT consistent use of `print(__doc__)` in examples (#21307)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-22 15:33:22 +02:00
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02: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
Thomas J Fan e650a207ef ENH Adds plot_confusion matrix (#15083) 2019-11-14 14:43:54 +01:00
Manuel López-Ibáñez 0a1ee74a14 EXA plot_confusion_matrix example breaks down if not all classes present (#13126)
* fix #12700 plot_confusion_matrix example breaks down if not all classes are present in the test data

* plot_confusion_matrix: update function call, fix style issues

* remove redundant confusion_matrix call
2019-02-10 16:05:58 +01:00
Ming Li 325a7f9e6c EXA prevent example xlabel cut off in plot_confusion_matrix.py (#11065) 2018-05-04 22:47:23 +08:00
rashchedrin 7b0b6d7344 [MRG+1] Fix confusion matrix example code (#7971)
* fixed issue 7969

* Limited number of decimal places in normalized confusion matrix

* deduplicated code
2016-12-03 15:57:15 -05:00
Igor Andriushchenko 7b7093ceda DOC make confusion_matrix_plot.py exmaple more copy-pastable 2016-07-15 00:40:03 +03:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
Olivier Grisel 2c5fea1647 FIX: divide each row of the CM by the true support 2014-09-01 11:21:25 +02:00
Olivier Grisel 8d3f4dfbcf ENH cosmetic reorg of the confusion matrix example 2014-09-01 10:17:33 +02:00
Laurent Direr f5052211e5 Modified the confusion matrix example: included a normalized matrix, changed the colors and added class labels. 2014-07-27 19:09:11 +02:00
Andreas Mueller 5b247f90e4 move around examples for better structure. 2014-07-17 09:35:30 +02:00