Commit Graph

6 Commits

Author SHA1 Message Date
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