Commit Graph

147 Commits

Author SHA1 Message Date
Rohan Lekhwani e0697b01a7 MNT Used scipy.special.expit for the inverse of the logit function (#12931) 2019-01-08 18:35:19 +11:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Adrin Jalali 02dc9ed680 Fix max_depth overshoot in BFS expansion of trees (#12344)
* fix the issue with max_depth and BestFirstTreeBuilder

* fix the test

* fix max_depth overshoot in BFS expansion

* fix forest tests

* remove the warning, add whats_new entry

* remove extra line

* add affected classes to changed classes

* add other affected estimators to the whats_new changed models

* shorten whats_new changed models entry
2018-11-13 13:10:33 -05:00
Hanmin Qin 43e3a02085
MNT Remove unused assert_true imports (#12560) 2018-11-11 11:08:37 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Guillaume Lemaitre 43c8563258 TST: skip test requiring internet using --skip-network (#12067) 2018-09-16 11:15:26 +10:00
Joel Nothman 79f5d147ea MNT Revert the deprecation of min_samples_leaf and min_weight_fraction_leaf (#11998) 2018-09-08 16:43:21 +02:00
Joel Nothman 2fe58e517c Deprecate min_samples_leaf and min_weight_fraction_leaf (#11870) 2018-08-23 08:30:47 +03:00
Gil Forsyth 08f04d9526 FIX Normalization of feature_importances_ in gradient boosting (#11176) 2018-06-22 08:24:08 +10:00
Roman Yurchak c50d9e87d0 [MRG+1] Pytest parametrize unit tests common tests and ensemble module (#11075) 2018-05-24 10:47:40 +02:00
Gaurav Dhingra c9e6d4d3a4 ENH Make GradientBoostingClassifier error message more informative (#10207) 2017-12-18 23:58:58 +11:00
Guillaume Lemaitre 8616a0863c [MRG+1] FIX convert to CSR in decision_function (#10102) 2017-12-01 07:38:02 +11:00
fenx 4bba21659c [MRG+1] Error raised when presort in gradient_boosting.py and tree.py is not a boolean (#10110) 2017-11-28 13:27:13 +01:00
Rameshwar Bhaskaran 64a1812aad [MRG+1] Added tests for parameter checks in GradientBoostingRegressor (#10013) 2017-11-01 22:07:58 +01:00
Bastian Venthur 7400775633 [MRG+1] MAINT Replace assert_array_equal with -assert_array_almost_equal where necessary. (#9774) 2017-09-18 19:55:23 +10:00
(Venkat) Raghav, Rajagopalan 312b1dfc74 ENH Early stopping for Gradient Boosting Classifier/Regressor (#7071) 2017-08-09 22:02:47 +02:00
(Venkat) Raghav (Rajagopalan) fc2f24927f [MRG+1] ENH/FIX Introduce min_impurity_decrease param for early stopping based on impurity; Deprecate min_impurity_split (#8449)
[MRG+2] ENH/FIX Introduce min_impurity_decrease param for early stopping based on impurity; Deprecate min_impurity_split
2017-04-03 09:38:53 -07:00
Sebastian Pölsterl 3162f980a9 [MRG] Set min_impurity_split in gradient boosting models (#8007)
Fixes #8006
2016-12-14 10:40:49 +11:00
Andreas Mueller 5c4b1bb231 [MRG+1] Housekeeping Deprecations for v0.19 (#7927)
* remove stuff to be removed 0.19

* more changes

* remove classes from 0.19 whatsnew

* remove _LearntSelectorMixin

* remove ProjectedGradientNMF, load_lwf_*

* minor fixes

* remove more copy from logistic regression path

* remove lda, qda from __init__.__all__

* remove pg solver in nmf from tests etc

* remove class_weight="auto" from tests

* doctest change for decision_function_shape="ovr"

* remove transfrom from tree test, minor fixes to tree tests

* some fixes in the tests

* undo changes in functions which still allow 1d input...

* also allow 1d in scale

* more test fixes...

* last test fixes in forest and tree

* svm default value change doctest failures

* pep8

* remove more class_weight="auto" stuff

* minor cosmetics in docstrings deprecated / removed behavior.

* say that store_covariance has been moved to __init__ in discriminant_analysis
2016-12-09 12:43:38 -05:00
Ibraim Ganiev 78dbcb2838 [MRG] fix #6101 GradientBoosting decision_function for sparse inputs (#6116) 2016-10-15 21:41:44 +11:00
Artem Golubin 36e67a91af Fix test suites (#6348) 2016-10-07 19:47:43 -04:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Andreas Mueller 776e53b127 skip unstable tests on 32bit platform 2015-11-02 15:21:22 -05: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
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
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
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
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
Jungkook Park 8453daa6b9 Use expit function to compute the probability in ExponentialLoss class. 2015-06-08 13:03:52 -04:00
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -04:00
Andreas Mueller d89c215013 Add tags to classifiers and regressors to identify them as such. 2015-03-31 19:59:49 -04:00
Raghav R V 93008482bd DOC/TST docstring --> comment 2015-03-26 18:41:19 +05:30
Peter Prettenhofer d0db91a144 add huber to non-uniform sample weight toy test case 2015-03-26 11:44:53 +01:00
Peter Prettenhofer 5ba271bd39 cosmit 2015-03-25 14:23:07 +01:00
Peter Prettenhofer 5018a44ccf add regression test case for issue 4447
- fix another test
2015-03-25 14:22:31 +01:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Andreas Mueller 0036dd0319 ENH make defensive copies in GradientBoosting*.staged_decision function. 2015-02-24 16:28:33 -05:00
Arnaud Joly 92ed5eee42 FIX ensure that negative float max_features will lead to an error 2015-02-03 13:39:18 +01:00
Arnaud Joly 92b90815a6 FIX Ensure at least 1 feature is sampled when max_features is a float 2015-02-03 13:30:17 +01:00
Raghav R V 0bca2ffdfa FIX Refactor _is_fitted method into check_is_fitted.
DOC Make the docstring of NotFittedError class to conform to pep8.

DOC Make the error message of check_is_fitted more newbie friendly.
2015-01-12 00:33:40 +05:30
Raghav R V 129e319f99 FIX the try except block to recognize NotFittedError 2015-01-12 00:33:40 +05:30
Arnaud Joly 6b548f96f1 MAINT remove deprecated loss in gradient boosting 2014-10-24 12:58:13 +02:00
Arnaud Joly d4405cbf6c MAINT remove deprecated oob_score_ 2014-10-21 17:33:48 +02:00
Christian Stade-Schuldt cd7b43ccf9 TST make catch_warnings blocks more robust 2014-10-12 18:20:18 +02:00
Peter Prettenhofer 85b2c783ce add probability output for exponential loss 2014-09-22 00:29:38 +02:00
Peter Prettenhofer e6fa80014b non-uniform weight test case for both reg and clf and all losses 2014-09-22 00:12:38 +02:00
Peter Prettenhofer 05fbc6423d fix: sample_weight is None in Huber.deviance
fix: sample_weight multiplication in Huber leaf updates
more tests (non-uniform weights, weight consistency and invariance to scaling, deviance consistence)
2014-09-18 10:42:36 +02:00