Commit Graph

108 Commits

Author SHA1 Message Date
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
Óscar Nájera bd5cecce44 update references link namespace 2016-08-03 20:23:50 +02:00
Óscar Nájera 04116ce286 update image sources namespace 2016-08-03 20:23:50 +02:00
Nate George 9b25f5d37a Fix docs links (#7005)
* docs: fix broken and redirect links

see #7000

* docs: fix links

see #7000

* docs: merge with master

* docs: fix fnrs and tinyclues logo links

* docs: fix link reference in text

* docs: fix typo

* docs: added back in metaoptimize-qa paragraph

* docs: update language for defunct site

* docs: update stackexchange section

* docs: remove defunct site, move quora to top

* docs: remove defunct link and rearrange links
2016-07-27 16:58:25 -04:00
Ryan Yu 81559ee38e Update tree.rst (#6826) 2016-05-25 21:57:28 -03:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
Gilles Louppe f76d9c44af Merge pull request #5646 from mscherer/fix_doc
Fix formatting issue in tree.rst
2015-10-31 11:35:02 +01:00
Michael Scherer 598f1cbc44 Fix formatting issue in tree.rst 2015-10-31 11:19:31 +01:00
yelite fea218e5cf In tree, min_samples_split and min_samples_leaf now accept float number as percentage. 2015-10-24 23:18:52 +02:00
Arnaud Joly bdc39e7436 DOC FIX missing minus in Shannon's entropy formula 2015-10-07 16:27:10 +02:00
Jacob Schreiber 02c0029baa ENH gbt sparse support 2015-09-28 13:44:12 -07:00
trevorstephens d6a4bc0741 update export_graphviz docs
skip doctests
2015-05-10 14:58:53 -07:00
Anthony Erlinger c601005230 Improve documentation on Diabetes dataset 2015-04-24 15:38:30 -04:00
Christof Angermueller 6ff4e14395 Update documentation of predict_proba in tree module 2015-03-05 15:33:26 -05:00
Arnaud Joly c03c01a504 ENH Bring sparse input support to tree-based methods
Author:     Arnaud Joly <arnaud.v.joly@gmail.com>
            Fares Hedayati <fares.hedayati@gmail.com>
2014-11-06 13:58:28 +01:00