Commit Graph

13 Commits

Author SHA1 Message Date
siavrez c9e5067cb1
DOC speed up plot_ensemble_oob.py (#21730)
* After 125, more estimators does not help the model and it improves  runtime by almost 50%

* accelerate plot_ensemble_oob.py changed max_estimator to 150 with step=5
2021-11-24 14:14:28 +01:00
Dimitri Papadopoulos Orfanos d4d5f8c7e0
MAINT consistent use of `print(__doc__)` in examples (#21307)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-22 15:33:22 +02:00
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02:00
Guillaume Lemaitre 8a8e21b2a3 MNT Change the default value of n_estimators in forests (#13803) 2019-05-09 21:19:20 +08:00
Hanmin Qin dd3b705f7b MNT Unused imports in examples 2018-10-02 17:12:19 +08:00
annaayzenshtat 2242c59fc8 [MRG] EHN: Change default n_estimators to 100 for random forest (#11542)
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#pull-request-checklist
-->

#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Fixes #11128.

#### What does this implement/fix? Explain your changes.
Issues deprecation warning message for the default n_estimators parameter for the forest classifiers. Test added for the warning message when the default parameter is used.

#### Any other comments?


<!--
Please be aware that we are a loose team of volunteers so patience is
necessary; assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
For more information, see our FAQ on this topic:
http://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.

Thanks for contributing!
-->
2018-07-17 14:42:59 -05:00
Balakumaran Manoharan 04be1a9799 [MRG + 1] DOC Fix Sphinx errors (#9420)
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR #6651

* Change tag name
Old refers to new tag added with PR #7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
2017-07-30 15:22:10 +10:00
Shota e2a2b4d403 Fix typos (#6942) 2016-06-27 18:13:49 +02:00
Kian Ho 2656f7be61 Refined the docstring for plot_ensemble_oob.py.
- Minor change to #4665: cleaned up the writing style of the documentation.
2015-05-08 22:50:42 +10:00
Kian Ho e038cb3759 Made more amendments according to PR feedback.
A number of further amendments to the plot_ensemble_oob.py example
script were suggested in the PR thread and addressed accordingly:

- The ExtraTreesClassifier models were removed from the example, since
  they don't use bootstrapping by default (but can be using bootstrap=True).

- Included the OOB errors for RandomForestClassifier models with various
  max_features values.

- Changed the sample datasets to make for a nicer looking plot.

- Changed "cross-validated" to "validated" in the docstring.

- Added the relevant page numbers to the Hastie et al. reference.

- PEP8 compliance, fixed line > 80 chars.
2015-05-07 18:37:51 +10:00
Kian Ho b6ce3226f7 Amended plot_ensemble_oob.py according to #4665.
@amueller provided feedback on improving my original PR (#4665) of the
plot_ensemble_oob.py script.

A number of major changes were made accordingly:

- Used `matplotlib.pyplot` instead of `pylab`.

- To improve the run-time to <10secs, I reduced the dimensionality of
  the sample dataset and set the max. number of estimators to 150.

- To avoid OOB warnings, the min. number of estimators was set to 15.
  Values <15 would still raise the warnings.

- The script is PEP8-compliant via the `pep8` command-line script. I
  needed to move `print(__doc__)` and author list comments.

- Re-added @amueller to the author list (had mistakenly been removed).

- Added a link to this example to the user-guide under the `Ensemble
  Methods` section.
2015-05-05 17:36:22 +10:00
Kian Ho 5b2ee7a14f Minor amendments to plot_ensemble_oob.py.
Corrected typo in the docstring.

Removed explicit figure size statement.

Fixed docstring formatting.

Corrected the author list.
2015-05-05 16:58:50 +10:00
Kian Ho 017f289460 Initial commit of plot_ensemble_oob.py
This is a proposed fix for #4273.
2015-05-03 04:12:51 +10:00