Commit Graph

265 Commits

Author SHA1 Message Date
Tim Head 07cede74ca Multitarget regression meta estimator
Register OneVsRestRegressor as meta estimator

Rename to a more sensible name

Parallel predict and sparse support

Started MultiOutput documentation

Move code to new file multioutput.py

Continuing the move to new multioutput module

Added sample weight support

Better test for sample weights and actually support weights

Added a new test using weighted vs repeated samples to
test sample weight support. Uncovered that weights
were not actually passed on to underlying estimator.

Comment on multiprocess overheads

Move parallel_helper to utils.fixes

This helper works around a python2 limitation on pickling
instance methods

Example of multi-output regression with gradient boosting

Switch to uniform weighted score and updated example

The example now uses a RF with and without the MultiOutput
meta estimator

Added note for removing `score` method

Addressing comments on MultiOutputRegressor

MultiOutputregressor better test for weighted samples

Fix ups

Use explicit keyword argument for passing sample weights and
fix random_state on train-test split in the example
2016-03-10 16:06:08 -05:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
jeremynixon 29e7e39844 update ambiguous out of bag generalization terminology - from 'error' to 'accuracy' or 'the R^2...'. 2015-11-23 16:48:09 -08:00
Yoshiki Vázquez Baeza 33771749e4 DOC: Add defaults for oob_score in docstrings
Add the default (False) to a few docstrings in the forest.py module.
2015-11-01 15:49:11 -08: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
ngoix a75eb63194 iforest
example + benchmark

explanation

make some private functions + fix public API

IForest using BaseForest base class for trees

debug + plot_iforest

classic anomaly detection datasets and benchmark

small modif

BaseBagging inheritance

shuffle dataset before benchmarking

BaseBagging inheritance

remove class label 4 from shuttle dataset

pep8 + rm shuttle.csv bench_IsolationForest.png + doc decision_function

add tests

remove comments

fetching kddcup99 and shuttle datasets

fetching kddcup99 and shuttle datasets

pep8

fetching kddcup99 and shuttle datasets

pep8

new files iforest.py and test_iforest.py

sc

alternative to pandas (but very slow)
in kddcup99.py

faster parser

sc

pep8 + cleanup + simplification

example outlier detection

clean and correct

idem

random_state added

percent10=True in benchmark

mc

remove shuttle + minor changes

sc

undo modif on forest.py and recompile cython on _tree.c

fix travis

cosmit

change bagging to fix travis

Revert "change bagging to fix travis"

This reverts commit 30ea500eb818c7a2c6ea5c3d63e75c6935aa3a35.

add max_samples_ in BaseBagging.fit to fix travis

mc

API : don't add fit param but use a private _fit + update tests + examples to avoid warning

adapt to the new structure of _tree.pyx

cosmit

add performance test for iforest

add _tree.c _utils.c _criterion.c

TST : pass on tests

remove test

relax roc-auc to fix AppVeyor

add test on toy samples

Handle depth averaging at python level

plot example: rm html add png

load_kddcup99 -> fetch_kddcup99 + doc

Take into account arjoly comments

sh -> shuffle

add decision_path code from #5487 to bench

Take into account arjoly comments

Revert "add decision_path code from #5487 to bench"

This reverts commit 46ad44ab487f4fd2728d927cbe09000330e8663e.

fix bug with max_samples != int
2015-10-24 15:17:32 +02:00
Alexandre Gramfort 5a58e56826 Merge pull request #5487 from arjoly/example-node
[MRG+1] Add an example and a method to analyse the decision tree stucture
2015-10-22 13:31:49 +02:00
Gael Varoquaux 744d161d37 Merge pull request #5431 from hlin117/nan-targets
[MRG + 2] Add check to regression models to raise error when targets are NaN
2015-10-22 09:36:12 +02:00
Arnaud Joly 7d4755e317 Add a decision_path function to forest estimator 2015-10-21 17:05:56 +02:00
Arnaud Rachez 62633f701b Addressed comments on PR #5451 2015-10-21 10:24:23 +02:00
Arnaud Rachez 5db2adf93c MAINT Removed deprecated stuff. 2015-10-21 10:24:23 +02:00
hlin117 34c8399be1 #5322: Fixing the fix - now RFs should be okay 2015-10-20 10:36:47 -05:00
hlin117 d62e316882 #5322: Resolving Random Forest build errors (bad input shape) 2015-10-20 10:36:47 -05:00
hlin117 b4e746bb5c Resolving rebase conflicts on forest.py 2015-10-20 10:33:22 -05:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Jiali Mei 85223b9bcc a common test to check if classifiers fail when fed regression targets 2015-10-14 14:46:13 -04:00
Ankur Ankan 4243412173 fixes bug in oob_score when X is sparse.csc matrix [refs #4744] 2015-07-17 14:46:14 +05:30
Andreas Mueller d92d35f8fe Merge pull request #4783 from tokoroten/decrease_randomforest_memory
[MRG+1] RandomForest decrease allocated memory when using bootstrap option. (Fix issue#4774)
2015-07-11 12:52:09 -05:00
rasbt 4ab89c5a84 upd randomforest docstring 2015-07-06 23:52:43 -04:00
Tian Wang 9f06156f20 add a new int array to store indices 2015-06-24 11:22:01 -04:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
tokoroten 02fedc6ca3 autopep8 E501 2015-06-02 21:12:30 +09:00
tokoroten 4515cecffb change valiable name to meaningful. 2015-06-02 21:06:20 +09:00
Andreas Mueller 123a8c99b6 FIX add class_weight="balanced_subsample" to the forests to keep backward compatibility to 0.16 2015-06-01 12:49:53 -04:00
Andreas Mueller eedc1cddab Use more natural class_weight="auto" heuristic 2015-06-01 12:49:53 -04:00
tokoroten bcd7e9b19c refactoring to DRY. 2015-05-29 19:45:08 +09:00
tokoroten cc84db3775 refactoring to simplify 2015-05-28 16:12:48 +09:00
tokoroten 21dbe72345 randomforest decrease allocated memory 2015-05-28 15:43:02 +09:00
Arnaud Joly 64e553398b DOC document missing attributes 2015-05-12 15:00:38 +02:00
Dougal J. Sutherland 027eb6d3a1 ForestClassifier.predict docstring correction
See http://stats.stackexchange.com/q/127077/9964 for some discussion....
2015-04-27 23:03:48 -04:00
Arnaud Joly 32290ad503 FIX use the new notfittederror in feature_importances_ 2015-04-20 17:27:58 +02:00
Arnaud Joly 294a6219e2 FIX properly raised not fitted error 2015-04-20 17:27:58 +02:00
Arnaud Joly 4b8b20015d ENH Factor out validation of X for apply/predict in forest 2015-04-20 17:27:58 +02:00
Arnaud Joly 4e6346ef62 FIX raise error properly when n_features differ in fit and apply 2015-04-20 17:27:58 +02:00
Andreas Mueller a5f0159ea5 don't to input validation in each tree for RandomForest.predict 2015-04-13 19:30:02 -04:00
Christof Angermueller 49aa9d5840 Update docstring predict_proba() 2015-03-05 15:33:26 -05:00
Olivier Grisel feceab6f62 FIX test for consistent handling on empty input data 2015-02-26 10:45:06 +01:00
Gilles Louppe 420daac269 Merge pull request #4190 from trevorstephens/refactor_cw
MRG+2: Refactor - Farm out class_weight calcs to .utils
2015-02-06 08:24:27 +01:00
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
trevorstephens f75c98b872 refactor forests & trees class_weight calc 2015-01-31 18:27:29 -08:00
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Gilles Louppe b7d9c3e0aa FIX: ensure that feature importances are properly scaled 2015-01-13 16:08:58 +01:00
trevorstephens 35c2535bfc rename cw option to subsample & refactor its implementation 2015-01-12 21:27:13 -08:00
trevorstephens b541191754 Merge branch 'master' into rf-class_weight
Conflicts:
	doc/whats_new.rst
	sklearn/ensemble/forest.py
	sklearn/tree/tree.py
2015-01-12 19:15:21 -08:00
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
trevorstephens cad87b578c rename vars & copy sample_weight 2015-01-10 11:49:42 -08:00
trevorstephens 9c7566e5df Merge branch 'master' into rf-class_weight
Conflicts:
	doc/whats_new.rst
2015-01-08 07:56:19 -08:00
trevorstephens ac9ab961bb Y-org rename & whats_new update 2015-01-08 02:31:24 -08:00
trevorstephens 2b24ccefa0 parameter validation checks & tests for errors 2015-01-03 13:15:42 -08:00
akshayah3 e77aac8e58 Documentation of max depth parameter
Changed the docstring

Few docstring changes
2014-12-29 20:04:25 +05:30