Commit Graph

296 Commits

Author SHA1 Message Date
Guillaume Lemaitre 2f6e22b398
DOC make warning more obvious in example regarding feature importance (#18024) 2020-07-30 13:19:06 +02:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Roman Yurchak 94f2e9c5d8
DOC simpler block delimitation in sphinx-gallery examples (#17068)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-08 23:23:14 -04:00
Lucy Liu a2d361bf40
DOC Fix wording, typo in plot_voting_regressor.py (#16895)
* wording, typo

* add suggestions

* add n est

* remove n est
2020-04-14 11:27:00 +02:00
Lucy Liu 8122e77bee
DOC Fix typos, wording in plot_gradient_boosting_regression.py (#16894) 2020-04-11 13:15:23 -04:00
Rory Hartong-Redden c84ad60c8c
DOC Fix Confidence Interval Again (#16809) 2020-03-31 19:27:40 -07:00
Nicolas Hug 36ebf3e371
[MRG] Monotonic constraints for GBDT (#15582) 2020-03-24 20:27:00 +01:00
Katrina Ni 104b736d44
DOC add permutation importance to GradientBoostingRegressor (#16742)
* add permutation importance to gbr

* format document

* separate deviance from feature importance during plotting

* add some analysis

* Update examples/ensemble/plot_gradient_boosting_regression.py

Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>

Co-authored-by: Katrina Ni <kani@tableau.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2020-03-24 10:45:58 +01:00
maikia b65c53d292
DOC plot gradient boosting regression changed to diabetes dataset (#16400) 2020-03-19 09:27:10 +01:00
maikia 48738f7adf
in plot_stack_predictors exchanged boston dataset for Ames housing dataset (#16345) 2020-03-03 15:33:57 +01:00
maikia 3e92edbab8
DOC plot voting regression now uses diabetes dataset (#16387) 2020-02-18 15:46:23 -05:00
Olivier Grisel 54c3a1fbe7
DOC More explicit warnings about impurity based feat. imp. (#16382) 2020-02-05 15:20:20 +01:00
Sunmi Yoon 4a187968ff
DOC Clarify that feature_importance_ are impurity based (#16237) 2020-02-01 13:18:11 +01:00
Eunseop Jeong 2fdfd9e96d DOC fix elapsed time in StackingRegressor example (#15607) 2019-11-12 07:59:57 +01:00
Guillaume Lemaitre bab5926024 FEA: Stacking estimator for classification and regression (#11047) 2019-09-19 06:06:33 +10:00
Thomas J Fan 14f5302b70 DOC Link items explictly (#14817)
* DOC Link items explictly

* STY

* DOC Link another
2019-09-05 11:37:05 +02:00
Allen Akinkunle 01d8e70af0 MNT Use return_X_y=True with load_boston where appropriate (#14678) 2019-08-20 10:08:23 +08:00
Dylan Cashman 0307afa179 DOC VotingClassifier example weights incorrect (#14561) 2019-08-14 17:12:06 -04:00
Sourav Singh f8e4cc495a ENH Add return_X_y to 20_newsgroups and olivetti_faces (#14259) 2019-07-20 10:30:09 +08:00
Martin Oywa 59612a22b3 DOC Fixed Future Warnings by explicitly defining n_estimators = 100 in for the Regressor. (#14159) 2019-06-22 18:03:37 -04:00
Guillaume Lemaitre 9ee164baa3 [MRG] DEP remove legacy mode from OneHotEncoder (#13855) 2019-05-29 21:03:29 +10:00
Guillaume Lemaitre 778b11904e [MRG] DEP remove threshold_, change contamination, deprecate behaviour in iforest (#13811) 2019-05-22 12:41:47 +10:00
Guillaume Lemaitre 8a8e21b2a3 MNT Change the default value of n_estimators in forests (#13803) 2019-05-09 21:19:20 +08:00
Guillaume Lemaitre 7896b21562 MNT change default of solver in LogisiticRegression (#13805) 2019-05-08 21:31:39 +08:00
Nicolas Hug 6b7dc9bc30 FEA Partial dependence plots (#12599) 2019-04-24 22:52:15 +10:00
Ramil Nugmanov d94e2a2f00 FEA VotingRegressor (#12513) 2019-04-10 21:27:17 +10:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08: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
Mickaël Schoentgen 2df594564d EXA Fix several DeprecationWarning: invalid escape sequence in examples (#12924) 2019-01-05 12:22:36 +08:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Hanmin Qin dd3b705f7b MNT Unused imports in examples 2018-10-02 17:12:19 +08:00
Olivier Grisel fc7d6e6986 [MRG] Fix FutureWarnings in logistic regression examples (#12114)
* Be more specific about logistic regression solver in examples

* Use early stopped SGD (faster) and plot cross-validated error for best models

* Fix LR solver in /plot_voting_probas.pyexamples/ensemble/plot_voting_probas.py

* Fix LR solver & scale data in plot_digits_classification_exercise.py

* Use saga solver in plot_logistic_l1_l2_sparsity.py

* Use LBFGS solver in plot_iris_logistic.py

* Use LBFGS in plot_logistic.py

* Use SAGA solver for Logistic Regression Path example

* Use LBFGS solver in plot_classifier_chain_yeast.py

* Use LBFGS solver in plot_rbm_logistic_classification.py

* typo

* typo

* Bump up pandas dependency to 0.17.1

* Bump up examples minimal deps to match pandas 0.17.1

* Fix figure layout for plot_digits_pipe.py

* Version numbers are not decimal numbers

* Set multinomial, no scaling to keep example simple, fix formatting of example doc

* Missing plt.tight_layout() in plot_voting_probas.py

* Missing plt.tight_layout() in plot_logistic.py
2018-09-24 18:22:40 +01: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
Nicolas Goix 53622e856c FIX: enfore backward compatibility of decision function in Iforest (#11553) 2018-07-23 13:05:48 +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
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
Andreas Mueller 0b8d362545 [MRG] Examples deprecations (#11561) 2018-07-17 00:08:04 -05:00
Joel Nothman 14764061f8
[MRG] DOC fix some sphinx warnings (#11241) 2018-06-21 20:43:21 +10:00
Joris Van den Bossche 007aa710bd FEA Refactor CategoricalEncoder into OneHotEncoder and OrdinalEncoder (#10523)
Deprecated some OneHotEncoder behaviour
2018-06-21 19:27:41 +10:00
Loïc Estève f247ad5adf MAINT change tabs to spaces.
* CircleCI bash scripts
* a couple of stray tabs in examples
2018-01-05 13:08:37 +01:00
Joris Van den Bossche a2ebb8cfd2 ENH: new CategoricalEncoder class (#9151) 2017-11-21 20:03:41 +11:00
Hanmin Qin 39e95c7982 improve example plot_forest_iris.py (#9989) 2017-10-24 12:49:53 -04:00
Hanmin Qin 32ac22870d [MRG+1] Fix warnings in lgtm.com (remove redundant code) (#9719) 2017-09-14 11:42:58 +02:00
Nabarun Pal 274724534d [MRG] Removes duplicate variable definition (#9688) 2017-09-05 09:27:18 +10:00
Andreas Mueller 9b5561148f [MRG] Figure improvements (#9648)
* Example plots render poorly in dev

* flake8 + bias_variance

* title padding

* misc ensemble variance plotting

don't use rcParams to set size of a single figure,
put legend outside of plot

* semisupervised plotting fixes

use explicit kwargs in subplots_adjust, change hspace, don't change aspect ratio of imshow.
2017-09-01 10:29:05 +02:00
(Venkat) Raghav, Rajagopalan 312b1dfc74 ENH Early stopping for Gradient Boosting Classifier/Regressor (#7071) 2017-08-09 22:02:47 +02:00
Balakumaran Manoharan 04be1a9799 [MRG + 1] DOC Fix Sphinx errors (#9420)
* Fix Rouseeuw1984 broken link

* Change label vbgmm to bgmm
Previously modified with PR #6651

* Change tag name
Old refers to new tag added with PR #7388

* Remove prefix underscore to match tag

* Realign to fit 80 chars

* Link to metrics.rst.
pairwise metrics yet to be documented

* Remove tag as LSHForest is deprecated

* Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py.
It is deprecated.

* Fix few Sphinx warnings

* Realign to 80 chars

* Changes based on PR review

* Remove unused ref in calibration

* Fix link ref in covariance.rst

* Fix linking issues

* Differentiate Rouseeuw1999 tag within file.

* Change all duplicate Rouseeuw1999 tags

* Remove numbers from tag Rousseeuw
2017-07-30 15:22:10 +10:00
Aarshay Jain a74d31a339 ENH 13 more examples fixed with matplotlib 2.0 (#9029) 2017-06-28 14:56:27 +02:00
plagree 1f6ac72df7 [MRG] DOC examples with correct notebook style (#9061)
* DOC examples with correct notebook style

* Modifications in examples/ to avoid unwanted notebook style

* Remove last notebook style example

* Space formatting to avoid notebook style
2017-06-20 14:48:57 +02:00