Commit Graph

92 Commits

Author SHA1 Message Date
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
Olivier Grisel 2eb1e98eef MAINT ensure that examples figures are displayed in the correct order 2014-07-14 15:47:17 +02:00
Noel Dawe b9f6ac4038 min_weight_fraction_leaf: narrative doc update 2014-07-02 11:47:33 +02:00
Noel Dawe f62a6d1723 min_weight_fraction_leaf: narrative docs 2014-07-02 11:47:32 +02:00
Ankit Agrawal 587deb1cad Minor doc example fix 2014-02-03 23:01:34 +05:30
Arnaud Joly aeaffe5f0a DOC + example with multioutput regression face completion for knn 2013-07-26 15:57:35 +02:00
Gilles Louppe 79953a04d6 WIP: updated documentation 2013-07-22 12:19:59 +02:00
Justin Vincent 14f8fdba8e use ELLIPSIS in doctest to deal with numpy changes. 2013-07-10 13:01:41 -04:00
Justin Vincent fe52584e83 Got all the doc-tests working 2013-07-10 10:52:25 -04:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Gael Varoquaux a7e5eb9ef9 DOC: cosmit - fix latex typo 2013-05-07 08:08:36 +02:00
A. Flaxman 9663654fb8 DOC: latex beautification
use \log, \max, \min, \operatorname{argmax}, insead of versions w/o backslash
2013-05-07 08:08:36 +02:00
Olivier Grisel c193eacc04 Delete iris.dot in tree.rst doctest 2012-12-16 19:30:25 +01:00
Gilles Louppe caf69c0c4b FIX: docstring tests 2012-12-05 08:23:53 +01:00
GaelVaroquaux f07a10a25f BUG: fix doctest bug
Bug introduced by @tjanez : in doctests, continuations are written with
'...' and not '>>>'
2012-11-07 16:14:27 +01:00
Tadej Janež 6b6e1ab17b Skip doctest for the remaining line involving pydot. 2012-11-07 16:06:01 +01:00
Tadej Janež 94fa4d1d1a Skip doctest for the Python code involving pydot. 2012-11-07 16:06:01 +01:00