Commit Graph

434 Commits

Author SHA1 Message Date
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
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
Elizabeth Sander 6581b0d142 FIX predict method for multiclass multioutput ensemble models (#12834) 2019-01-03 08:23:49 +11:00
Bartosz Michałowski fa98a72dcc MNT Replaced all occurrences of assert_true and assert_false with assert (#12588) 2018-11-28 09:16:26 +08:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11: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
Ramil Nugmanov 1f2dd75175 MNT bare asserts (#12571) 2018-11-13 09:58:20 +11: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
Joel Nothman 1128094271 BLD we should ensure continued support for joblib 0.11 (#12350) 2018-11-06 22:10:23 +01:00
Yaroslav Halchenko 6226cf59ad TST skip test_backend_respected if joblib is forced into serial mode (#12496) 2018-11-02 23:10:57 +01:00
Connossor 5cef1df11b FIX ensure max_features > 0 in ensemble.bagging (#12388) 2018-10-27 11:22:20 +02:00
Andreas Mueller 2eca77b98f MNT complete VotingClassifier flatten_transform deprecation (#12252) 2018-10-04 20:12:34 +10:00
Guillaume Lemaitre 43c8563258 TST: skip test requiring internet using --skip-network (#12067) 2018-09-16 11:15:26 +10:00
Roman Yurchak ec69171d52 TST Use pytest.raises instead of legacy constructions (#12057) 2018-09-13 13:57:43 +02: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 7ed61a24fe ENH add multi_class='auto' for LogisticRegression, default from 0.22; default solver will be 'lbfgs' (#11905)
* Change default solver in LogisticRegression
* This is an API change, not a feature
* Decrease numerical precision in LogisticRegression doctest
* ENH add multi_class='auto' for LR, default from 0.22
* No warning when binary
2018-08-26 23:00:02 +03:00
Joel Nothman 2fe58e517c Deprecate min_samples_leaf and min_weight_fraction_leaf (#11870) 2018-08-23 08:30:47 +03:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Nicolas Goix 53622e856c FIX: enfore backward compatibility of decision function in Iforest (#11553) 2018-07-23 13:05:48 +02:00
Guillaume Lemaitre a365714481 [MRG+2] FIX enforce deterministic behaviour in BaseBagging (#9723)
* FIX enforce deterministic behaviour in BaseBagging

* DOC add entry in whats new for model changes

* add comments

* revert space

* revert space right place

* Typo

* FIX change estimators_samples_

* TST check size training set and hash during bootstrapping

* DOC/TST API entry in doc and style correction

* DOC move entry in the right section

* DOC add missing author and issue

* DOC add details in whats new entry

* FIX add hash from joblib in utils

* iter
2018-07-19 19:18:51 +02:00
Alexandre Boucaud f158e2dfe2 [MRG+1] Change CV defaults to 5 (#11557)
* add FutureWarning for methods with defaults=3

* add explicit cv values to fix assertion errors

* add tests for catching the FutureWarning

* Write current deprecation version

* Add deprecation in docstring

* change default cv value to None

* change cv from 3 to 5 in the examples

* upgrade doctests

* update doctest in tutorial

* update doctest in cross-validation doc

* fix tests

* add entry to whats new

* address Gael comments

* address Gael comments 2

* fix wrong indentation

* update doc

* add docstring deprecation warning in CV subclasses

* address Andy's comments

* fix PR number

* fix flake8

* add filterwarnings in tests

* fix doctests

* cv=None mendatory in Ridge

* fix warning related errors

* skip some doctests warnings

* make travis happy

* change from deprecated to versionchanged

* fix doctests and remove skipping

* address comments
2018-07-19 14:46:11 +02:00
Andreas Mueller b9330d96c9 pep8 whoops 2018-07-17 17:00:41 -05:00
Andreas Mueller 8e2c2aa35d
raise DeprecationWarnings and FutureWarnings as errors (#11570)
Towards #11252.
In the end we'd like to make these errors so we can keep this cleaner in the future.
2018-07-17 15:31:45 -05:00
Andreas Mueller b577fb91cd TST: fix using imputer on inf and NINF and none in bagging tests. (#11593) 2018-07-17 21:56:46 +02:00
Guillaume Lemaitre cba99e0133 [MRG+2] FIX: make the deprecation in fit and not init in IsolationForest (#11574)
* FIX make the deprecation in fit instead than init

* DOC mention version changed

* FIX investigate weird failing test
2018-07-17 14:52:30 -05:00
annaayzenshtat 2242c59fc8 [MRG] EHN: Change default n_estimators to 100 for random forest (#11542)
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#pull-request-checklist
-->

#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Fixes #11128.

#### What does this implement/fix? Explain your changes.
Issues deprecation warning message for the default n_estimators parameter for the forest classifiers. Test added for the warning message when the default parameter is used.

#### Any other comments?


<!--
Please be aware that we are a loose team of volunteers so patience is
necessary; assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
For more information, see our FAQ on this topic:
http://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.

Thanks for contributing!
-->
2018-07-17 14:42:59 -05:00
Loïc Estève 60f887e65c MAINT Fix scipy-dev-wheels build (#11251)
Ignore PendingDeprecationWarning
2018-06-24 20:57:54 +10:00
Gil Forsyth 08f04d9526 FIX Normalization of feature_importances_ in gradient boosting (#11176) 2018-06-22 08:24:08 +10:00
Jimmy Wan a31a9067b3 ENH Update BaggingRegressor to relax checking X for finite values (#9707) 2018-05-31 12:41:13 +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
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +10:00
Gaurav Dhingra eed83790b0 ENH Change default gamma from 'auto' to 'scale' in SVC (#10331) 2018-03-10 10:39:21 +08:00
Andreas Mueller 931fae8753 add missing whitespace in VotingClassifier flatten_transform warning (#10664) 2018-02-21 08:41:39 +11:00
Nicolas Goix 0788cd0c6a [MRG+2] ENH/FIX Outlier detection algorithms API consistency (#9015)
Consistent handling of decision_function, score_samples and contamination
2018-02-06 06:57:44 +11: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
RAKOTOARISON Herilalaina 233a3e5347 ENH Add named_estimator_ for votingClassifier (#9168) 2017-09-03 08:54:35 +10:00
(Venkat) Raghav, Rajagopalan 312b1dfc74 ENH Early stopping for Gradient Boosting Classifier/Regressor (#7071) 2017-08-09 22:02:47 +02:00
jschendel 0bfe10d1fa FIX Pass sample_weight as kwargs in VotingClassifier (#9493) 2017-08-06 09:35:28 +10:00
Taehoon Lee 4ff7e8e658 Fix typos (#9476) 2017-08-02 14:02:59 +10:00
RAKOTOARISON Herilalaina 6f70202ef9 [MRG+1] - Voting classifier flatten transform (Continuation) (#9188)
* flatten_transform parameter added to VotingClassifier

* Regression test added

* What's new section added

* flake8 fix

* Improve test and docstring

* Add what's new entry

* default value flatten_transofrm

* Add test for warning msg

* Fix bug in assert_warns_message

* Move warn msg into transform

* Add deprecation warning

* Merge warning

* Change warn msg

* Move what's content into Trees and ensembles

* Fixes minor bug

* update what's new

* update test
2017-07-21 15:49:36 -04:00
Sebastin Santy 924a4661ee [MRG + 1] Too few arguments in formatting call (#9298)
* Too few arguments in formatting call

* Add test

* Covered with tests
2017-07-13 23:48:04 +02:00
Olivier Grisel 07590331c4 FIX make test_importances pass on 32 bit linux 2017-07-13 20:08:45 +02:00
Olivier Grisel c2dfd751d5 TST Unskip test_importances in forest and loop over 64/32 bit for testing (#9282) 2017-07-05 18:01:01 +02:00
Sebastin Santy dc43486806 Remove unused imports (#9235) 2017-07-01 05:57:54 -07:00