Commit Graph

1201 Commits

Author SHA1 Message Date
Agamemnon Krasoulis 9faa41429c docstring fix X in predict/predict_proba (#13004) 2019-01-17 14:45:22 -05:00
Finn O'Shea 98baafb64a MNT Inelegant failure of RandomTreesEmbedding.transform when not fitted (#12965) 2019-01-13 23:14:24 +08:00
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
Roman Yurchak acb8106472 MNT Use list and dict comprehension (#12668) 2019-01-08 09:32:34 +11:00
Hanmin Qin 02a0101c7c
FIX learning_rate default value in update_terminal_regions (#12925) 2019-01-05 11:33:37 +08:00
Roman Yurchak 836a8124a5 MNT Use scipy.special.xlogy to avoid indefinite limit in 0 for x*log(y) (#12915) 2019-01-03 23:05:57 +08: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
Andreas Mueller b32076f581 DOC better explain bootstrap option in forests and bagging (#12875) 2018-12-28 13:19:27 +08:00
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
Nicolas Hug e73acef80d FIX Fixed gradient computation in gradient boosting for multiclass classification (#12715)
* Fixed gradient update

* Added whatsnew entry
2018-12-19 15:14:38 +01: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
Nicolas Hug 4ab60559c8 MNT Change deprecation for min_impurity_split from removal to changing the default (#12400) 2018-11-20 09:54:08 +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
Olivier Grisel 664ff3474f ENH Prefer threads for IsolationForest (#12543) 2018-11-07 14:50:04 +01: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
Matthew Roeschke 5af272ac61 MNT Remove unused variables (#12230) 2018-10-22 12:48:40 +11:00
Rohan Varma 39bd736e59 [MRG] Move RandomTreesEmbedding criterion & max_features to be class attributes (#12324)
* rm criterion and max_features from __init__ and store them as class attrs instead

* make sure that the docstring comes first
2018-10-10 15:56:47 -04:00
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
Andreas Mueller 2eca77b98f MNT complete VotingClassifier flatten_transform deprecation (#12252) 2018-10-04 20:12:34 +10:00
Rebekah Kim 9d58ca5ad4 MNT Remove duplicate import of warnings & unused variables (#12203) 2018-09-30 08:11:25 +08:00
Sriharsha Hatwar 0c0a9e8406 DOC Replaced the deprecated early_stopping parameter with n_iter_no_change. (#12133) 2018-09-23 07:21:05 +10:00
Adrin Jalali 8a5ff27e2f DOC BaggingRegressor missing default value for oob_score in docstring (#12108) 2018-09-19 11:59:07 +08: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
Vivek Kumar 3a80162b42 DOC gradient boosting fit() supports sparse X (#12022) 2018-09-06 18:38:48 +10:00
Nicolas Hug 77b8e554c7 COSMIT Mimimal refactoring of gradient_boosting.py (#11921) 2018-08-30 10:09:51 +10:00
Pradeep Reddy Raamana 1a61f50577 DOCS: noting y is present in one-class fit methods merely for API consistency (#11939) 2018-08-30 10:05:41 +10: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
Andreas Mueller 0d15e6ca7f minor doc changes 2018-08-20 15:50:21 -04:00
notmatthancock 50d9b0aa1f DOC: explain default max_features in RandomForestRegressor (#11746) 2018-08-20 09:08:35 +10:00
Hanmin Qin 9b8fd0b0d0 DOC Correct default n_jobs & reference the glossary (#11808)
Also improves the glossary entry for n_jobs.
2018-08-18 19:57:10 +10:00
Naoya Kanai c1738a38a5 MNT update Travis dependencies to latest available versions (#11714) 2018-08-14 08:23:06 +10: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
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Ronan Lamy 5592a2eda9 [MRG] PyPy support for all but a couple of estimators (#11010) 2018-07-20 14:39:53 +10: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