Commit Graph

64 Commits

Author SHA1 Message Date
Guillaume Lemaitre 8912619e0d
FIX handle outlier detector in _get_response_values (#27565) 2023-10-13 12:04:08 +02:00
Guillaume Lemaitre 3597f0bb5d
ENH accept class_of_interest in DecisionBoundaryDisplay to inspect multiclass classifiers (#27291)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
2023-10-11 10:29:57 +02:00
Arturo Amor 206769cc57
DOC Fix `DecisionBoundaryDisplay` docstring (#27529)
Co-authored-by: ArturoAmorQ <arturo.amor-quiroz@polytechnique.edu>
2023-10-04 18:10:47 +02:00
Guillaume Lemaitre 5d145bf760
DOC fixes intersphinx warnings (#26779)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-10 20:25:35 +00:00
Carlo Lemos 5e8d8cbd27
ENH Support sample weights in PartialDependenceDisplay.from_estimator (#26644) 2023-06-22 17:34:39 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Jérémie du Boisberranger 9d41678836
MAINT Clean deprecated pdp_lim as constructor param of PartialDependenceDisplay (#26426) 2023-05-24 17:34:30 +02:00
Xiao Yuan a5b4b14750
MAINT Parameters validation for sklearn.inspection.partial_dependence (#26209)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-04-26 14:11:14 +00:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Thomas J. Fan c9810e80c2
API Use grid_values instead of pdp_values in partial_dependence (#25732) 2023-03-01 18:05:47 -08:00
Thomas J. Fan fabe1606da
API Deprecates values in partial_dependence in favor of pdp_values (#21809)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-02-28 23:44:05 +01:00
Guillaume Lemaitre a7cd0ca44d
FIX propagate configuration to workers in parallel (#25363)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-01-20 12:44:35 -05:00
Thomas J. Fan d52e946fa4
MNT Require matplotlib in test_input_data_dimension test (#25104) 2022-12-03 13:12:23 +01:00
Arturo Amor c04724114a
FIX Array validation for DecisionBoundaryDisplay (#25077)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-12-02 12:10:11 +01:00
Guillaume Lemaitre 86080bbd5f
ENH cartesian accepts mixed dtypes arrays (#25067)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-11-29 17:02:41 +01:00
Madhura Jayaratne c1cfc4d4f3
ENH Extend PDP for nominal categorical features (#18298)
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

Closes https://github.com/scikit-learn/scikit-learn/issues/14969
2022-11-25 17:35:59 +01:00
Guillaume Lemaitre c4d3a698c4
DOC fix spelling in `DecisionBoundaryDisplay` docstring (#24921)
Co-authored-by: Tim Head <betatim@gmail.com>
2022-11-15 11:57:14 +01:00
Guillaume Lemaitre b22f7fa552
MNT numpydoc validation for Displays (#21469)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-09-26 23:54:29 +02:00
Jérémie du Boisberranger ee5d4ce151
MAINT Clean deprecation for 1.2: plot functions (#24445) 2022-09-16 17:07:25 +02:00
Maria Telenczuk b867a89500
DOC Ensure plot_partial_dependence passes numpydoc validation (#24325) 2022-09-03 10:54:15 +02:00
Jérémie du Boisberranger 07c1a58f64
skip if matplotlib not installed (#23322) 2022-05-10 16:25:11 +02:00
Guillaume Lemaitre b0b8a39d8b
FIX DecisionBoundaryPlot should not raise spurious warning (#23318) 2022-05-10 14:48:20 +02:00
Jérémie du Boisberranger 56bf428157
TST Speed-up tests in test_plot_partial_dependence.py (#23281) 2022-05-04 13:59:56 -04:00
Thomas J. Fan f5044bdc79
CLN Remove unnecessary code from DecisionBoundaryDisplay (#23192) 2022-04-23 15:20:19 -04:00
Roman Feldbauer 895023d1eb
DOC Fix User Guide link in PartialDependenceDisplay (#20004) 2022-04-14 15:16:03 -04:00
iasoon 426be189b5
TST: replace pytest.warns(None) in test_plot_partial_dependence.py (#23114)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-04-13 12:04:25 +02:00
Thomas J. Fan df692c03c1
ENH Reduce copying when centering PDPs (#23076)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-04-08 22:24:36 +02:00
JElfner adb47e7c14
ENH add an option to center ICE and PD (#18310)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-04-07 18:51:27 +02:00
Thomas J. Fan d400723a21
FEA Add DecisionBoundaryDisplay (#16061)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-29 16:36:31 +02:00
Jérémie du Boisberranger 33e4843e88
MNT remaining clean up for 1.1 (#22643) 2022-03-02 14:01:51 +01:00
Guillaume Lemaitre 111c78214c
ENH kind accept a list of str in plot_partial_dependence (#19438)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-17 18:09:06 +01:00
Alex 72bd9f335f
DOC Fix duplicate-word typos (#22454) 2022-02-11 22:47:10 -05:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Thomas J. Fan 057b82ed18
API Deprecates plot_partial_dependence (#20959)
* API Deprecates plot_partial_dependence

* DOC Adds whats new

* DOC Fixes doc build errors

* CLN Removes feature warning

* CLN Address comments

* DOC Fix docstrings

* TST Skip future warning tests

* DOC Adjust docstrings

* REV Reduce diff

* DOC Adds docstring
2021-09-09 14:25:59 +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
Mehdi Hamoumi 696ca3de57
ENH Add kwargs to format ICE and PD lines separately in partial dependence plots (#19428)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-08-16 21:58:22 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Olivier Grisel f738921eea
MNT skip doctests if matplotlib is not installed (#20347) 2021-06-24 11:50:39 +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
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
James Budarz 3e64e9e6ce
DOC Clarified n_jobs parallelization in plot_partial_dependence (#19750)
Co-authored-by: James Michael Budarz <james.m.budarz@aexp.com>
2021-03-23 07:46:14 -04:00
Guillaume Lemaitre 2218ec4622
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages (#19005)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-12-18 16:09:19 +00:00
Thomas J. Fan f82525ee2f
CLN Deprecations position args in PartialDependenceDisplay.plot (#18293) 2020-11-27 12:34:55 +01:00
Chiara Marmo 04c080aad8
FIX do not plot the legend when kind==individual in PDP (#18846) 2020-11-16 17:46:37 +01:00
Guillaume Lemaitre 2631a4549e
FIX make sure that ICE do not have labels (#18725) 2020-11-02 16:38:04 +01:00
Guillaume Lemaitre 60945b49a5
FIX solved legend issue in PDP (#18713) 2020-11-01 19:27:45 +01:00
Guillaume Lemaitre b617bd96b8
FIX solve wrong indexing in plots with ICE when subsampling (#18359) 2020-10-30 09:40:49 +01:00
Thomas J. Fan 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00