Commit Graph

27 Commits

Author SHA1 Message Date
Juan Carlos Alfaro Jiménez be4c1d1fee
MNT Replace PDF build by ZIP of the HTML (#17564) 2021-01-12 09:30:36 -05:00
Thomas J Fan 7dd12fb22d BLD Parallelize sphinx builds on circle ci (#15745) 2019-12-09 14:17:43 +01:00
Thomas J Fan 4a95e33e63 MNT Make modules private in sklearn.datasets (#15307) 2019-10-27 17:17:23 -04: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
Nicolas Hug 72b2ed9ee1 DOC Added docstring checks for dataset module (#11407) 2018-07-24 10:57:13 +10:00
Loïc Estève 34155a222b [MRG+1] CircleCI: run only modified examples in CircleCI (#10407) 2018-01-15 03:19:43 -08:00
Joel Nothman b9c79d486b MAINT remove entire directory in make clean 2017-09-28 00:33:57 +10:00
Joel Nothman e19b700666 DOC provide PDF documentation for download 2015-09-01 19:22:50 +10:00
Andreas Mueller a605bb9bbc Use plot_galler=0 in makefile for sphinx >1.2.3 Also works with 1.2.3 2014-11-25 10:43:41 -05:00
Lars Buitinck cfa61ab9bb DOC run optipng before uploading website 2014-07-09 17:58:47 +02:00
Alyssa 2e03618a0f <MRG> Doc generation works in Python 2 and 3
Documentation can be generated using Python 2 or Python 3 and sphinx
2014-04-14 17:53:01 -04:00
Lars Buitinck 070d7a686b MAINT remove unsupported documentation formats
In particular, "htmlhelp" and "qthelp". None of the core devs uses
this or is willing to support it. Fixes #2512 by not fixing it.
2014-04-06 17:19:34 +02:00
Gael Varoquaux baa3c7eda3 DOC: more robust compilation and CSS 2014-02-02 12:08:29 +01:00
Nelle Varoquaux 3dd6a4eb57 DOC now building to html/stable
closes #2314
2013-07-30 09:40:07 +02:00
Alexandre Abraham 1f6d7e09ec Merge branch 'master' of https://github.com/jaquesgrobler/scikit-learn into fix_doc_clean 2012-11-15 10:20:19 +01:00
Alexandre Abraham ae86c22d1c BUG: Fix path in doc cleaning
In the documentation Makefile, all paths but one are set relatively
to the doc folder. This fixes it for the path to the generated
folder which could cause trouble when rebuilding documentation
after API change.
2012-11-15 10:05:32 +01:00
Lars Buitinck ae82bc7a60 rm the long-deprecated scikits.learn package 2012-07-23 13:56:13 +02:00
Lars Buitinck 8d65e48415 DOC ported latexpdf target from Sphinx 1.0.7-generated Makefile
Also, clean up doc/README
2011-10-12 14:52:52 +02:00
Gael varoquaux 5eafac939e BUG: giving up on cleaning build
It causes bugs in the documentation building. To avoid gathering image
files, run make clean every once in a while.
2011-04-03 14:56:16 +02:00
Olivier Grisel cf29b7a98c ENH: do not download LFW when building the documentation by default 2011-04-03 02:26:50 +02:00
Gael varoquaux 2461a6f633 ENH: Avoid gathering old images in docs
It seems that Sphinx never overrides an image in its output directory,
and simply renames it to a backup name. This creates a pretty bad disk
usage leak. As a quick fix, I add a line flushing this directory in the
Makefile
2011-04-03 00:58:16 +02:00
Gael varoquaux aaeadfb96a MISC: html-nodoc default target 2011-04-01 12:59:03 +02:00
Fabian Pedregosa 27eda75101 Remove generated classes on make clean. 2010-12-14 19:25:15 +01:00
Fabian Pedregosa ce2d71668a Implement make html-noplot for building the doc.
Just builds the doc without the example gallery.
2010-11-17 13:08:20 +01:00
Fabian Pedregosa c1ebd63a5a Some work on the rst docs. 2010-09-01 14:52:52 +02:00
Fabian Pedregosa 54a4be5951 Remove also auto-generated examples with make clean 2010-06-26 08:12:00 -05:00
Fabian Pedregosa 362fe46563 Initial import of rst docs.
Added some documentation for manifold_learning, ann and svm, but they
are mostly references to the docstrings.

From: Fabian Pedregosa <fabian.pedregosa@inria.fr>

git-svn-id: https://scikit-learn.svn.sourceforge.net/svnroot/scikit-learn/trunk@340 22fbfee3-77ab-4535-9bad-27d1bd3bc7d8
2010-01-14 15:13:39 +00:00