Commit Graph

218 Commits

Author SHA1 Message Date
Jacob Schreiber bc225a5e1a ENH apply method added to Gradient Boosting 2015-09-10 10:32:51 +02:00
Alexandre Gramfort 6126eced61 unused import 2015-08-31 21:52:48 +02:00
Tim Head ea8d092f2c Explicitly mention RandomTreesEmbedding in the text 2015-08-14 20:04:46 +02:00
Tim Head 89ec72ea2f Example to demonstrate use of tree.apply() method
This example trains several tree based ensemble methods and uses
them to transform the data into a high dimensional, sparse space.
The trains a linear model on this new feature space. The idea is
taken from:

Practical Lessons from Predicting Clicks on Ads at Facebook Junfeng Pan,
He Xinran, Ou Jin, Tianbing XU, Bo Liu, Tao Xu, Yanxin Shi, Antoine
Atallah, Ralf Herbrich, Stuart Bowers, Joaquin Quiñonero Candela
International Workshop on Data Mining for Online Advertising (ADKDD)

https://www.facebook.com/publications/329190253909587/
2015-08-11 20:38:07 +02:00
rasbt c655bb9b0e changed clf to regr in decision tree regression examples 2015-06-17 15:20:23 -04:00
Andreas Mueller e8356d39d5 FIX add missing numpy imports to VotingClassifier examples, pep8 fixes. 2015-05-12 16:41:44 -04:00
Gilles Louppe fa5bd2c70b Merge pull request #4692 from kianho/plot-ensemble-oob-trace
Refined the docstring for plot_ensemble_oob.py (#4665)
2015-05-08 14:54:00 +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
Gael Varoquaux ef94a2a671 Merge pull request #4665 from kianho/plot-ensemble-oob-trace
[MRG+1] Script for example ensemble OOB error plot. Fixes #4273
2015-05-08 11:36:44 +02: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
rasbt 2910198f14 votingclassifier 2015-04-20 19:27:30 -04:00
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Brian Wignall 48cbbab89b CLN: Fix typo in comment 2014-12-13 09:14:47 -05:00
Noel Dawe 09896dc2dd plot_adaboost_twoclass.py: minor improvements 2014-10-02 22:41:51 -07:00
Andreas Mueller 5b247f90e4 move around examples for better structure. 2014-07-17 09:35:30 +02:00
Olivier Grisel 30347e9a80 FIX python 3 compat for plot_bias_variance.py 2014-06-23 11:04:39 +02:00
ugurthemaster b929656592 Update plot_adaboost_regression.py
Library imports have been moved to top of the file.
2014-05-26 09:48:50 +03:00
IvicaJovic 8dc8673525 fix wrong confidence interval 2014-05-17 22:28:30 +02:00
Rajat Khanduja cca6fc7e8b Some more examples updated to use matplotlib.pyplot 2014-05-16 09:42:02 +05:30
Rajat Khanduja 7d10d98492 Fixed some PEP8 violations even present in master branch, in examples/
This fixes some of the violations that were not caused by the change to pyplot
from pylab.
2014-05-15 09:35:24 +05:30
Noel Dawe f260259611 xrange -> range 2014-04-16 23:40:56 -07:00
Noel Dawe 65bbe9ebbc plot_adaboost_multiclass.py: handle case where boosting terminated early. Add missing author on other boosting examples. 2014-04-16 17:36:38 -07:00
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00
Gilles Louppe b499743c93 DOC: update examples, use matplotlib.pyplot instead of pylab 2014-02-27 10:22:21 +01:00
Arnaud Joly 8cdd2be0d5 Merge pull request #2897 from ugurthemaster/patch-1
Update plot_forest_importances.py
2014-02-26 10:24:43 +01:00
ugurthemaster 4640608151 Update plot_forest_importances.py
import statement has moved to the top of the file
2014-02-26 10:55:01 +02:00
hendrik 8f94ae6d0f PY3 fixed examples 2014-02-15 17:05:08 +01:00
Peter Prettenhofer 6aec00e480 use max_leaf_nodes in regularization example 2013-11-22 18:13:55 +01:00
Gilles Louppe 74d395215b ENH bagging meta-estimator 2013-09-11 13:51:09 +02:00
Andreas Mueller 26eb3c606f DOC/EXAMPLES fix more documentation errors, deprecated api usages. 2013-07-28 15:01:48 +02:00
Arnaud Joly aeaffe5f0a DOC + example with multioutput regression face completion for knn 2013-07-26 15:57:35 +02:00
Peter Prettenhofer 63c8848898 example doc string 2013-07-24 11:17:34 +02:00
Peter Prettenhofer cebaeebbce moved to new pyplot import 2013-07-24 11:17:33 +02:00
Peter Prettenhofer e75d9bb67b rn: ACC -> Accuracy 2013-07-24 11:17:33 +02:00
Peter Prettenhofer 42ff16cade use new style str formatting 2013-07-24 11:17:33 +02:00
Peter Prettenhofer b8f018d379 more doc for OOB example 2013-07-24 11:17:33 +02:00
Peter Prettenhofer 725020a991 cosmit: rs -> random_state 2013-07-24 11:17:33 +02:00
Peter Prettenhofer 017b605a14 cosmit: n -> n_samples 2013-07-24 11:17:32 +02:00
Peter Prettenhofer c2e9949b72 comments 2013-07-24 11:17:32 +02:00
Peter Prettenhofer 81ffae583c cosmit: use train_test_split - tuned params for nice plot 2013-07-24 11:17:32 +02:00
Peter Prettenhofer 8376e12df3 more docstrings 2013-07-24 11:17:32 +02:00
Peter Prettenhofer 1fd0090e1f rn: plt -> pl 2013-07-24 11:17:32 +02:00
Peter Prettenhofer 9b2008101a plot cv error as well 2013-07-24 11:17:31 +02:00
Peter Prettenhofer eecca4b06f example for oob estimates in GBRT 2013-07-24 11:17:31 +02:00
Ian Ozsvald 0bf39889bd updated docs to fix formatting errors 2013-07-17 13:54:34 +01:00
Ian Ozsvald 4e1bc3ccd5 improved formatting 2013-07-10 16:29:03 +01:00
Ian Ozsvald fb10548fc0 clearer decision surface plots and classifier final predictions for the ensembles 2013-07-10 13:32:11 +01:00