Commit Graph

336 Commits

Author SHA1 Message Date
MechCoder 80e22b3ddf Patch liblinear for sample_weights in LogisticRegression(and CV) 2015-10-23 00:00:31 -04: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
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
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Manoj Kumar 652b950074 Merge pull request #4242 from MechCoder/select_from_model
[MRG+1] Implemented SelectFromModel meta-transformer
2015-10-10 23:15:06 -04:00
MechCoder 5a0db1717a 1. Added parameter prefit to pass in a fitted estimator.
2. Use assert_warns instead of catch_warnings
3. Remove depracation warnings in common tests.
2015-10-09 01:57:36 -04:00
Vighnesh Birodkar 735dd1fdca Fix warnings during tests 2015-10-08 14:52:21 -04:00
MechCoder 2416e2aee6 Catch filters instead of removing the tests 2015-10-05 11:24:02 -04:00
Jacob Schreiber 02c0029baa ENH gbt sparse support 2015-09-28 13:44:12 -07:00
Gilles Louppe 3575db60a1 TEST: check parallel computation 2015-09-14 07:38:01 +02:00
Gilles Louppe 5f589fbbb4 TEST: reduce test time, variable name, etc 2015-09-13 20:09:07 +02:00
Gilles Louppe bcc6f1bf57 TEST: take comments into account 2015-09-12 18:41:26 +02:00
Gilles Louppe 78974def03 TEST: use sklearn.fixes.bincount 2015-09-12 16:08:10 +02:00
Gilles Louppe 25dbb155a6 TEST: stronger tests for variable importances 2015-09-12 15:18:51 +02:00
Gilles Louppe 7e2453ac48 Merge pull request #5242 from arjoly/stable-test-2
FIX unstable test due to bootstrap and unset random state
2015-09-11 09:16:08 +02:00
Arnaud Joly 994cbe1faf FIX unstable test due to bootstrap and unset random state 2015-09-10 14:36:44 +02:00
Olivier Grisel 470b9a48be Merge pull request #5228 from jmschrei/gb_apply
[MRG+1] Apply method added to GradientBoosting
2015-09-10 10:37:25 +02:00
Jacob Schreiber bc225a5e1a ENH apply method added to Gradient Boosting 2015-09-10 10:32:51 +02:00
Vighnesh Birodkar 2f099334f9 MAINT deprecate 1d input arrays for all estimators
Passing 1D arrays to check_array, without setting `ensure_2d` to false now
raises a deprecation warning before reshaping it. This will later throw an
error.

All Scaler classes also throw warnings when 1D arrays are passed.

All unit tests/doctests are modified to ensure that no 1D arrays are passed,
except in explicit 1D array tests where the warnings have been silenced.

Additional tests are also included which check for different 1D array cases.

2D array tests with one samples and one features are also added and where
they failed, `check_array` call has been modified to give a more useful error
message
2015-09-09 15:49:58 +02:00
Gilles Louppe 7fccf45e49 Merge pull request #5207 from MechCoder/ensemble_sample_weight_bug
[MRG+1] [BUG] AdaBoostRegressor should not raise errors if the base_estimator does not support sample_weights
2015-09-09 08:48:13 +02:00
Matti Lyra e648fb9bc4 Added the option of passing in a sparse X matrix into decision function, plus tests for sparse for all prediction functions. 2015-09-07 18:05:42 +02:00
MechCoder bb2acedac9 AdaBoostRegressor should not raise errors if the base_estimator
does not support sample_weights
2015-09-06 23:30:37 -04:00
Gael Varoquaux 190abde442 Merge pull request #4881 from sonnyhu/weighted_least_squares
[MRG + 1] add sample_weight into LinearRegression
2015-08-30 16:35:00 +01:00
Sonny Hu a88f6ecf9d add sample_weight into LinearRegression 2015-08-13 14:32:07 -04:00
Raghav R V 664d78eb7c MAINT Remove support for the deprecated sequence of sequences
MAINT Remove sequence of sequence support from datasets
MAINT Remove return_indicator param
MAINT Remove multilabel-seq test in OVR
MAINT Remove multilable-seq test in check_cv
MAINT Remove multilabel seq test in label_binarizer
TST type_of_target returns "unknown" for multilabel-sequence types
TST _check_targets should raise a ValueError
DOC show multilabel indicator as an example; remove return_indicator param
DOC use consistent lower case y for target
2015-08-11 22:26:44 +05:30
Olivier Grisel a45a50efa4 Merge pull request #5019 from glouppe/voting-get_params
[MRG+1] FIX: ensure that get_params returns VotingClassifier own params
2015-07-23 21:28:24 +02:00
Olivier Grisel 77d3fd9332 Merge pull request #4967 from stephen-hoover/threshold-boosting-samme_proba
[MRG+2] BUG Use epsilon threshold in `_samme_proba`
2015-07-23 21:18:34 +02:00
Gilles Louppe 34c4930591 FIX: ensure that get_params returns VotingClassifier own params 2015-07-23 08:34:26 +02: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
Stephen Hoover 0156dcf114 BUG Use epsilon threshold in `_samme_proba` and `_boost_real`
Instead of thresholding <0 probabilities to 1e-5, threshold <epsilon to epsilon. This avoids the issue of, e.g., probability values of 0 becoming larger than values of 1e-7.

Add a unit test for `_samme_proba` which checks that probability ordering is unchanged.

Resolves issue #4944 .
2015-07-12 13:34:40 -05:00
Alexandre Gramfort 1c07dec209 Merge pull request #4894 from tw991/rf
fix dtype transform problem in KNN and RandomForest
2015-06-24 23:33:10 +02:00
Tian Wang 9f06156f20 add a new int array to store indices 2015-06-24 11:22:01 -04:00
jnothman 8b44fa197d Merge pull request #4824 from amueller/testing_less_warnings
minor fixes to the tests, don't raise as many warnings in the test suite
2015-06-09 22:30:22 +10:00
Jungkook Park 8453daa6b9 Use expit function to compute the probability in ExponentialLoss class. 2015-06-08 13:03:52 -04:00
Andreas Mueller f0f174b74f ENH minor fixes to the tests, don't raise as many warnings in the test suite 2015-06-05 13:50:46 -04:00
Gael Varoquaux 01aff46402 Merge pull request #4347 from amueller/class_weight_auto
[MRG+1] Use more natural class_weight="auto" heuristic
2015-06-01 16:15:37 -04: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
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -04:00
Gilles Louppe 6ac6ea3842 COSMIT: VotingClassifier 2015-05-08 10:10:47 +02:00
Alexandre Gramfort 9eb1964724 Merge pull request #4161 from rasbt/ensemble-classifier
[MRG + 2] EnsembleClassifier implementation
2015-05-08 09:21:36 +02:00
Tim Head 8add36bdb9 Better assert_raises use, API compliance, better ordering
Removed the need for printing attributes to raise
exceptions in the tests

Removed unnecessary setting of attributes in the
initialisation.

Moved check for warm_start and oob_score
2015-05-06 15:14:06 +02:00
Tim Head fb9e7254c6 oob_score will only be calculated if warm_start=False 2015-05-06 15:14:06 +02:00
Tim Head 51a51ef675 Test oob_score for warm_start'ed bagging classifiers
Test that oob_score is a good estimate of generalization
error in case of warm_start.

Test that oob_score is computed only on most recent
training samples with newly added classifiers
2015-05-06 15:14:06 +02:00
Tim Head 4408a180cc Test for unchanged n_estimator and indentation fix
Added a test to check nothing happens when calling
fit() without changing n_estimators. Fixed indentation
in fit() for this case.
2015-05-06 15:14:06 +02:00
Tim Head b03af5760b Fix random_state to make test reproducible 2015-05-06 15:14:05 +02:00
Tim Head 2f563df512 Added warm_start to bagging
BaggingClassifier and BaggingRegressor now support warm_starts. Added
basic tests and documentation of the new functionality. Heavily
inspired by work on warm_start for Random forests.
2015-05-06 15:14:05 +02:00
Arnaud Joly c78f2624eb FIX raise ValueError if sample weight are passed but unsupported by the base estimator 2015-04-29 11:34:48 +02:00