Commit Graph

122 Commits

Author SHA1 Message Date
Tialo 9faa522753
DOC Fixed some typos (#27410) 2023-09-19 12:35:02 +02:00
Shreesha Kumar Bhat f1273b724f
Doc Add dropdowns to 1.10.decision trees (#26699) 2023-08-28 14:14:15 +02:00
Fabian Egli 2b0eef892d
DOC Note missing value support as advantage of decision trees (#26928)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-28 12:47:13 -04: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
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
Veghit 9d00015776
DOC several small typo fixes in the documentation rst files (#25829)
Co-authored-by: Itay <itayvegh@gmail.com>
2023-03-13 10:49:21 +01:00
Loïc Estève 1650347857
DOC fix links with broken anchor (#23611) 2022-06-14 16:51:01 +02:00
David Gilbertson 8efd78b083
DOCS Fix typos in decision trees docs (#23545) 2022-06-06 09:49:42 -04:00
Ivan Sedykh 632384f431
DOC changed <= symbol to \leq in tree module documentation (#23425)
Co-authored-by: Ivan Sedykh <`sed.ivan.dm@gmail.com>
2022-05-19 16:03:17 -04:00
Christian Lorentzen 6ce5c0acad
ENH add criterion log_loss as alternative to entropy in trees and forests (#23047) 2022-04-14 08:03:01 +02:00
Olivier Grisel 28db3497a4
DOC fix typo in log loss formula for trees (#23117) 2022-04-12 14:09:31 +02:00
Logan Thomas f16c987592
DOC: various spellcheck and typos (#23093) 2022-04-12 10:53:27 +02:00
Olivier Grisel e275d9df3d
DOC write the cross-entropy loss for classification trees (#23081)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-04-11 16:58:14 +02:00
Olivier Grisel 0cc5483f75
DOC remove unimplemented misclassification criterion from user guide (#23071) 2022-04-07 10:01:12 -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
Mehmet Ali Özer 1db2681a05
DOC Fix load iris datasets (#19729) 2021-03-21 13:07:24 -04:00
Eric Fiegel 6420b8b502
DOC min_sample_split does not take sample_weight into account (#18897) 2020-11-23 15:28:50 +00:00
Christian Lorentzen de59efe7cb
[MRG] ENH add Poisson splitting criterion for single trees (#17386) 2020-11-02 16:32:29 +01:00
Hitesh Somani 34d956b1ab
DOC Update tree.rst about lack of support of categorical data (#18106) 2020-08-06 10:51:06 +02:00
oj_lappi 022ad0befd
DOC Fix math notation error in description of CCP (#16450)
Breiman, Friedman, Ohlsen, Stone use a T with a tilde to denote the terminal nodes of a tree. A simple T would imply we are counting the nodes in the whole tree.
2020-07-16 00:02:53 +02:00
Juan Carlos Alfaro Jiménez 8754470a78
DOC Specify shape with parentheses in decision tree guide (#17873) 2020-07-09 17:38:03 +02:00
Thomas9292 a8067f7190
DOC Add tiebreaking explanation to DecisionTreeClassifier docs (#17783)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: thomas.wesselink@ing.com <thomas.wesselink@ing.com>
2020-07-04 16:35:16 -04:00
Thomas J Fan 91e942759f
DOC Make release highlights the first gallery section (#16952) 2020-04-27 11:23:15 -04:00
Kevin Markham bd9fd0f1a9
DOC Minor updates to the Decision Tree User Guide (#16905) 2020-04-14 09:40:15 -04:00
Christian Lorentzen 532e5f73ea
DOC fix MAE formula for tree splitting criterion (#16720) 2020-03-18 17:21:58 -04:00
Adrin Jalali 99d3d34d61
MNT deprecating presort in DecisionTree* and GradeintBoosting* (#14907)
* deprecating presort

* pep8

* address comments, add whats_new

* recomment HistGradientBoosting

* address comments
2019-09-10 20:39:52 +02:00
Kanika Sabharwal 40c7978a64 use return_X_y=True for load_iris dataset (#14777) 2019-08-24 17:54:16 -04:00
Thomas J Fan 67c94c7e2a Add Minimal Cost-Complexity Pruning to Decision Trees (#12887) 2019-08-20 09:02:45 -04:00
Manimaran 921c8f3249 DOC reference tree structure example from user guide (#13561) 2019-04-04 23:38:40 +11:00
Giuseppe Vettigli a061ada48e FEA Print Decision Trees in ASCII format (#9424) 2019-02-12 10:23:48 +11:00
Joel Nothman 486f8fc543 DOC fix plot_iris references after files renamed 2019-01-17 23:31:48 +11:00
Pulkit Maloo d9b56b666d DOC DecisionTreeClassifier does not support categorical data (#12402) 2018-10-18 17:48:39 +11:00
Andreas Mueller c13ba26c47
[MRG] Matplotlib tree plotting (#9251)
* add reingold tillford tree layout algorithm

* add first silly implementation of matplotlib based plotting for trees

* object oriented design for export_graphviz so it can be extended

* add class for mlp export

* add colors

* separately scale x and y, add arrowheads, fix strings

* implement max_depth

* don't use alpha for coloring because it makes boxes transparent

* remove unused variables

* vertical center of boxes

* fix/simplify newline trimming

* somewhere in the middle of stuff

trying to get rid of scalex, scaley

* remove "find_longest_child" for now, fix tests

* make scalex and scaley internal, and ax local.

render everything once to get the bbox sizes, then again to actually plot it with known extents.

* add some margin to the max bbox width

* add _BaseTreeExporter baseclass

* add docstring to plot_tree

* use data coordinates so we can put the plot in a subplot, remove some hacks.

* remove scalex, scaley, add automatic font size

* use rendered stuff for setting limits (well nearly there)

* import plot_tree into tree module

* set limits before font size adjustment?

* add tree plotting via matplotlib to iris example and to docs

* pep8 fix

* skip doctest on plot_tree because matplotlib is not installed on all CI machines

* redo everything in axis pixel coordinates

re-introduce scalex, scaley
add max_extents to tree to get tree size before plotting

* fix max-depth

parent node positioning and don't consider deep nodes in layouting

* consider height in fontsize computation

in case someone gave us a very flat figure

* fix error when max_depth is None

* add docstring for tree plotting fontsize

* starting on jnothman's review

* renaming fixes

* whatsnew for tree plotting

* clear axes prior to doing anything.

* fix doctests

* skip matplotlib doctest

* trying to debug circle failure

* trying to show full traceback

* more print debugging

* remove debugging crud

* hack around matplotlib <1.5 issues

* copy bbox args because old matplotlib is weird.

* pep8 fixes

* add explicit boxstyle

* more pep8

* even more pep8

* add comment about matplotlib version requirement

* remove redundant file

* add whatsnew entry that the merge lost

* fix merge issue

* more merge issues

* whitespace ...

* remove doctest skip to see what's happening

* added some simple invariance tests buchheim function

* refactor
___init__ into superclass

* added some tests of plot_tree

* put skip back in, fix typo, fix versionadded number

* remove unused parameters special_characters and parallel_leaves from mpl plotting

* rename tests to test_reingold_tilford

* added license header from pymag-trees repo

* remove duplicate test file.
2018-10-11 15:42:02 -04:00
TakingItCasual f4e7d2b19a Converting http to https (3)... (#12302) 2018-10-05 18:50:31 +02:00
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
Sebastian Raschka cbbe489e86 DOC fix cross-entropy typo in tree docs (#12242) 2018-10-03 17:05:08 +10:00
Nicolas Hug 2d6603448a DOC Removed duplicated doc in tree.rst (#11922) 2018-09-24 21:32:05 +08:00
Joel Nothman 79f5d147ea MNT Revert the deprecation of min_samples_leaf and min_weight_fraction_leaf (#11998) 2018-09-08 16:43:21 +02:00
Joel Nothman 2fe58e517c Deprecate min_samples_leaf and min_weight_fraction_leaf (#11870) 2018-08-23 08:30:47 +03:00
Loïc Estève 20661b5018
TST: only run doctests on numpy 1.14. (#10835)
Fix doctests due to numpy 1.14 formatting changes.
2018-03-27 07:44:40 +02:00
Andreas Mueller 3bcfd07a5f DOC make notation for regression criterion more uniform and better looking (#10643) 2018-02-16 09:35:05 +08:00
Warut Vijitbenjaronk 8485d3eb5c [MRG] Add Explanation of MSE vs Friedman MSE vs MAE criterion in Regression Tree Building (#9367)
* clarified documentation for regression tree criterion

* added explanation on doc/modules/tree.rst
2017-07-17 10:02:18 -07:00
themrmax dbc3031579 [MRG+1] change module from pydotplus to graphviz (#9071)
[MRG+2] change module from pydotplus to graphviz
2017-06-26 09:55:14 -07:00
Aashil fdb32e29a4 [MRG] Add MAE formula in the regression criteria docs. (#8402) 2017-02-24 13:24:20 +11:00
Aashil 1ba84d7584 Explain the meaning of X_m in modules/tree doc. (#8398) 2017-02-19 20:12:45 +01:00
themrmax 8a7948aa99 MAINT remove unneeded import (#7465) 2016-09-22 11:16:36 +10:00
themrmax 500b768ea6 add depreciation warning for out_file default 2016-09-15 09:33:43 +10:00
themrmax 51679f91dd remove unused StringIO.get_value 2016-09-12 14:06:34 +10:00
themrmax 802814ee01 make export_graphviz return string if out_file is None 2016-09-12 13:47:08 +10:00
themrmax fed401c831 change decision tree example to use pydotplus for compatibility with Python 3 2016-09-05 14:45:57 +10:00