Samuel O. Ronsin
8b95194888
FIX force node values outside of [0, 1] range for monotonically constraints classification trees ( #27639 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2023-12-07 16:27:54 +01:00
Guillaume Lemaitre
4ebc5e25e6
MAINT remove old code related to removed option max_features="auto" ( #27698 )
2023-11-03 12:45:05 +05:00
Loïc Estève
caeb09e866
FIX Make decision tree pickles deterministic ( #27580 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-17 14:25:17 +02:00
Jérémie du Boisberranger
eb85684feb
MAINT Follow cython performance hints ( #27521 )
2023-10-11 11:43:47 +02:00
Adam Li
210550007e
MAINT Replace double with float64_t inside tree submodule ( #27539 )
...
Signed-off-by: Adam Li <adam2392@gmail.com>
2023-10-06 22:49:16 +02:00
Adam Li
fb0ab5abca
MAINT Fix ctypedef types in tree submodule ( #27352 )
...
Signed-off-by: Adam Li <adam2392@gmail.com>
2023-10-05 12:47:11 -04:00
Jérémie du Boisberranger
8ae5f18698
MAINT Add numpy.import_array where missing ( #27532 )
2023-10-05 10:00:39 +02:00
Mateusz Sokół
c4659db2da
MAINT: Cleanup expired ndarray methods ( #27401 )
2023-09-19 16:38:14 +02:00
Olivier Grisel
1fbf5fb317
TST Speed up some of the slowest tests ( #27383 )
2023-09-16 11:09:15 +02:00
Yao Xiao
1fe5350247
TST Extend tests for `scipy.sparse/*array` in `sklearn/tree/tests/test_tree` ( #27261 )
2023-09-13 22:29:15 +05:00
Tialo
0ee7553510
TST Extend tests for `scipy.sparse.*array` in `sklearn/tree/tests/test_monotonic_tree.py` ( #27224 )
2023-09-13 15:07:21 +02:00
Rahil Parikh
e24c13ca75
FIX accept `array-like` in `feature_names` for `plot_tree` ( #27292 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-09-06 11:20:30 +00:00
Adam Li
4fcbbc01be
[DOC] Improve tree documentation ( #26592 )
2023-08-29 16:10:43 +05:00
Thomas J. Fan
409485167b
ENH Adds support for missing values in Random Forest ( #26391 )
...
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-07-27 16:37:20 +00:00
Thomas Roehr
b8d4f46a53
FIX fix validation of class_names argument for plot_tree ( #26903 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-27 11:06:17 -04:00
Julien Jerphanion
dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions ( #26751 )
2023-07-12 18:34:01 +02:00
Loïc Estève
77d4bc1085
MNT Put nogil at the end of function signature ( #26785 )
2023-07-06 14:36:49 +00:00
Jérémie du Boisberranger
8abf66361f
MAINT fix cython 3 compilation errors ( #26771 )
2023-07-06 15:13:08 +02:00
Samuel O. Ronsin
b88b53985d
ENH Monotonic Contraints for Tree-based models ( #13649 )
...
Co-authored-by: Pat O'Reilly <patrick.oreilly256@gmail.com>
Co-authored-by: dsleo <leooleds@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-07-01 13:46:12 +02:00
Jérémie du Boisberranger
04575f5fa3
MAINT Param validation: apply skip nested validation to all functions ( #26495 )
2023-06-22 18:06:24 +02:00
Adrin Jalali
42173fdb34
MNT add isort to ruff's rules ( #26649 )
2023-06-21 17:50:07 +02:00
Thomas J. Fan
15f7cfbc05
CLN Renames missing_values_in_feature_mask ( #26580 )
2023-06-14 16:50:04 +00:00
Jérémie du Boisberranger
9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context ( #26473 )
2023-06-14 16:52:35 +02:00
Guillaume Lemaitre
9eea5b7092
MAINT unpack 0-dim NumPy array instead of implicit conversion ( #26345 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-06-09 15:07:59 +02:00
Dimitri Papadopoulos Orfanos
2fd022d972
MAINT Fix typos found by codespell ( #26448 )
2023-05-31 10:19:21 +02:00
Julien Jerphanion
41b0bd82ff
MAINT Use `scipy.sparse.isspmatrix_*` ( #26420 )
2023-05-30 13:46:32 -04:00
Thomas J. Fan
43cf7d46cb
BUG Fixes sample weights when there are missing values in DecisionTrees ( #26376 )
2023-05-16 18:35:14 +02:00
Yao Xiao
be892f5f14
MAINT Parameters validation for sklearn.tree.export_graphviz ( #26034 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-05-16 10:29:57 -04:00
Yao Xiao
6be774b9a0
FIX `tree.export_text` and `tree.export_graphviz` accepts feature and class names as array-like ( #26289 )
2023-05-15 18:29:37 +02:00
Adam Li
58f0f1d6fb
MAINT Fix usage of `property` in Cython extension classes ( #26297 )
2023-05-09 15:13:24 +02:00
Thomas J. Fan
6392148d80
ENH Adds missing value support for trees ( #23595 )
...
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-05-04 10:19:24 +02:00
Jérémie du Boisberranger
9cb1111028
MAINT Cython linting ( #25861 )
2023-04-19 14:32:53 +00:00
Ralf Gommers
08f1c26d8a
MAINT: remove `from numpy.math cimport` statements ( #26143 )
2023-04-12 16:06:05 +02:00
Adrin Jalali
893d5accaf
MNT Update black to 23.3.0 ( #26110 )
2023-04-06 12:14:16 -04:00
Jérémie du Boisberranger
4751545b55
MAINT Clean-up deprecated max_features="auto" in trees/forests/gb ( #25941 )
2023-03-22 11:30:19 -04:00
Veghit
f3c6fd6e98
MAINT validate_params for plot_tree ( #25882 )
...
Co-authored-by: Itay <itayvegh@gmail.com>
2023-03-20 10:11:30 +01:00
Nishu Choudhary
54108d95ff
MAINT Parameter validation for tree.export_text ( #25867 )
2023-03-17 10:41:01 +01:00
Jérémie du Boisberranger
9d55835574
MAINT Ensure disjoint interval constraints ( #25797 )
2023-03-15 14:44:09 -04:00
Jérémie du Boisberranger
86548dfdc2
FIX Raise an error when min_samples_split=1 in trees ( #25744 )
2023-03-06 17:32:25 -05:00
Adam Li
dfe9e2e118
MAINT Remove Cython compilation warnings ahead of Cython3.0 release ( #25621 )
2023-02-19 18:14:56 +01:00
Thomas J. Fan
ee7dd363b6
MAINT Use newest NumPy C API in tree._criterion ( #25615 )
...
* MAINT Use newest NumPy C API in tree._criterion
* FIX Use pointer for children
2023-02-19 17:37:39 +01:00
Omar Salman
872a084168
FIX error when deserialzing a Tree instance from a read only buffer ( #25585 )
2023-02-13 18:42:47 +01:00
Thomas J. Fan
4810fabecf
MAINT Adds comments and better naming into tree code ( #25576 )
...
* MAINT Adds comments and better naming into tree code
* CLN Use feature_values instead of Xf
* Apply suggestions from code review
Co-authored-by: Adam Li <adam2392@gmail.com>
* DOC Improve comment from review
* Apply suggestions from code review
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
---------
Co-authored-by: Adam Li <adam2392@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-02-13 06:49:41 -05:00
Omar Salman
584d413fec
MAINT Replace cnp.ndarray with memory views in sklearn.tree._tree (where possible) ( #25540 )
2023-02-09 08:21:28 +00:00
William M
aae5c83554
ENH Adds `class_names` to `tree.export_text` ( #25387 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-02-08 17:03:15 -05:00
Omar Salman
2620a5545a
MAINT Remove -Wsign-compare warnings when compiling sklearn.tree._tree ( #25507 )
2023-02-01 17:28:12 +01:00
Felipe Siola
99562100e9
EFF Improve IsolationForest predict time ( #25186 )
...
Co-authored-by: Felipe Breve Siola <felipe.breve-siola@klarna.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-01-24 15:03:13 +00:00
Julien Jerphanion
c3fca81536
FIX Support read-only sparse datasets for `Tree`-based estimators ( #25341 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-12 12:56:03 -05:00
Loïc Estève
f5ae73dcb4
CI Use latest Cython sources in scipy-dev build ( #25300 )
2023-01-11 13:55:13 -05:00
Thomas J. Fan
93533ddaff
MNT Refactor tree to share splitters between dense and sparse data ( #25306 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Adam Li <adam2392@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-01-11 14:07:24 +01:00