Commit Graph

371 Commits

Author SHA1 Message Date
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
Hanmin Qin 02a0101c7c
FIX learning_rate default value in update_terminal_regions (#12925) 2019-01-05 11:33:37 +08:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02: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
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
Sriharsha Hatwar 0c0a9e8406 DOC Replaced the deprecated early_stopping parameter with n_iter_no_change. (#12133) 2018-09-23 07:21:05 +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
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
Joel Nothman 2fe58e517c Deprecate min_samples_leaf and min_weight_fraction_leaf (#11870) 2018-08-23 08:30:47 +03:00
Naoya Kanai c1738a38a5 MNT update Travis dependencies to latest available versions (#11714) 2018-08-14 08:23:06 +10: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
Nicolas Hug 671fe79a5d [MRG] Added docstring checks for ensemble module (#11418)
* Added docstring checks for ensemble module
2018-07-17 17:02:43 +02:00
Gil Forsyth 08f04d9526 FIX Normalization of feature_importances_ in gradient boosting (#11176) 2018-06-22 08:24:08 +10:00
Vivek Kumar b2a55f0047 DOC Updated the shape of predict_proba output (#10766) 2018-03-07 18:23:14 +11:00
Mohamed Ali Jamaoui 58f84694a8 DOC Add reference to the glossary in the warm_start parameter description of public APIs (#10699) 2018-02-26 20:21:17 +08:00
Luis Pedro Coelho cc600b4417 DOC use "fraction" and not "percentage" (#10653)
Percentage would imply that the value would be divided by 100.
2018-02-18 10:46:05 +11:00
Joel Nothman c3bdc0a89a
DOC clean up assorted type specifications (#10441) 2018-01-11 09:11:17 +11:00
Gaurav Dhingra c9e6d4d3a4 ENH Make GradientBoostingClassifier error message more informative (#10207) 2017-12-18 23:58:58 +11:00
Gaurav Dhingra e6d170eb72 DOC fix docstring Gradient Boosting (#10262) 2017-12-06 20:52:05 +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
Joel Nothman 0abd95f742 DOC Correct attribute name 2017-11-13 22:56:57 +11:00
Rameshwar Bhaskaran 64a1812aad [MRG+1] Added tests for parameter checks in GradientBoostingRegressor (#10013) 2017-11-01 22:07:58 +01:00
Albert Thomas 45dc891c96 [MRG+2] Clean common tests (#9340)
* rm dupes

* add check_supervised_y_no_nan in classifier checks: this implies changes for Ridge classifiers

* fix docstrings/comments

* FIX check fitting 1d X array raises error and FIX check fitting 2d array with only 1 feature either works or returns informative message

* modify check_fit2d_1sample in common tests so that it checks fitting either works or returns an informative message

* rm SpectralClustering case for the moment

* uniformize error messages for 1 sample case and fix SpectralClustering with ensure_min_samples=2

* add unit test for mean_shift when n_samples * quantile < 1

* FIX travis with ensure_min_samples=2 in _PLS

* try fix for failing tSNE test

* typos

* take @agramfort's review into account

* sc to fix string in gaussian_process

* add the class that is present to preserve information of previous message in gpc.py
2017-09-26 18:13:15 +02:00
Kumar Ashutosh b441308f36 Fixes deprecation warning in numpy-dev build (#9683) 2017-09-04 10:00:15 +02:00
(Venkat) Raghav, Rajagopalan 312b1dfc74 ENH Early stopping for Gradient Boosting Classifier/Regressor (#7071) 2017-08-09 22:02:47 +02:00
Taehoon Lee 4ff7e8e658 Fix typos (#9476) 2017-08-02 14:02:59 +10:00
James Bourbeau f871e1d1e1 Fixes small typo in the GradientBoostingClassifier predict method documentation (#9210) 2017-06-25 01:14:48 +10:00
Naoya Kanai 95aa2952e1 Add logsumexp and comb to utils.fixes (#9046) 2017-06-10 15:01:02 +02:00
Naoya Kanai 6579220588 [MRG+1] Drop NumPy < 1.8 (#8874) 2017-06-07 17:06:06 +02:00
Andreas Mueller 1c41368bac [MRG+1] Uncontroversial fixes from estimator tags branch (#8086)
* some bug fixes.

* minor fixes to whatsnew

* typo in whatsnew

* add test for n_components = 1 transform in dict learning

* feature extraction doc fix

* fix broken test

* revert aggressive input validation changes

* in SelectFromModel, don't store threshold_ in transform. If we called "fit", use estimates from last "fit".

* move score from EllipticEnvelope to OutlierDetectionMixin

* revert changes to Tfidf documentation

* remove dummy input validation from whatsnew

* fix text feature tests

* rewrite from_model threshold again...

* remove stray condition

* fix self.estimator -> estimator, slightly more interesting test

* typo in comment

* Fix issues in SparseEncoder, add tests.
more explicit explanation of SparseEncoder change, add issue numbers to whatsnew

* minor fixes in whats_new.rst

* slightly more consistency with tuples for shapes

* not longer typo
2017-06-06 16:34:47 +02:00
Naoya Kanai bd0fc236e0 [MRG+1] MAINT drop SciPy < 0.13 (#8854)
Remove sklearn.utils.fixes functions that are not needed for scipy >= 0.13 and keep deprecated wrappers in other modules.
2017-06-02 23:36:33 +02:00
Guillaume Lemaitre 92cb166647 [MRG] DOC Homogeneous deprecation in docstring (#8907)
Update developers doc to use "deprecated" sphinx directive.
2017-05-23 08:42:08 +02:00
Guillaume Lemaitre 676f878e98 FIX set min_impurity_split to None in gradient boosting estimator (#8789) 2017-04-25 14:47:09 +02:00
Guillaume Lemaitre e3c9ae204f [MRG+1] DOC improve description and consistency of random_state (#8689)
* DOC improve description of random_state in train_test_split

* DOC Make random_state consistent through documentation

* FIX reverse doc mistake

* FIX address comment of Tom

* DOC address comments

* DOC remove empty line

* DOC remove unecessary white spaces
2017-04-05 17:43:21 -07: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
He Chen 919b4a8fbd [MRG + 1] Fix gradient boosting overflow and various other float comparison on == (#7970)
* reintroduced isclose() and flake8 fixes to fixes.py

* changed == 0.0 to isclose(...)

* example changes

* changed back to abs() < epsilon

* flake8 convention on file

* reverted flake8 fixes

* reverted flake8 fixes (2)

* np.finfo(np.float32).tiny instead of hard coded epsilon 1e-150

* reverted to 1e-150

* whats new modified
2017-03-07 09:21:38 -05:00
Guillaume Lemaitre cc3ce58953 [MRG+1] FIX/DOC Improve documentation regarding non-determinitic tree behaviour (#8452)
* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
2017-02-26 18:48:19 +01:00
Tahar 6f771d5186 [MRG] Remove unnecessary backticks around parameter name in docstrings (#8432) 2017-02-22 16:17:04 +01:00
Ekaterina Krivich be305cebaf TST/FIX Add check for estimator: parameters not modified by `fit` (#7846)
ensure that estimators only add private attributes and attributes with
  trailing _

  in cases when existing estimators don't follow this new rule, we deprecate the
  attributes and make them follow this rule
2017-01-20 11:33:17 +11:00
Alexis Mignon b6854944fb [MRG+1] Corrected sign error in QuantileLossFunction (#6429)
* Corrected sign error in QuantileLossFunction
2016-12-22 18:09:58 +01: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
Loïc Estève e542efafe2 TST Ensure that attributes ending _ are not set in __init__ (#7464) 2016-12-12 21:57:43 +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
Joel Nothman 8570622a44 [MRG+1] DOC insert spaces before colons in parameter lists (#7920)
* DOC insert spaces before colons in parameter lists

Complies with numpydoc to improve rendering and automatic quality
assurance such as #7793. Affects listings of Parameters Attributes,
Returns.

Performed with the help of:

    grep -nE '^(    )+[a-zA-Z][a-zA-Z0-9_]*: ' sklearn -R | grep -v -e
    externals -e tests | grep -v -e default: -e else: -e Warning: -e Note:
    -e TRAIN: -e Default: -e True: -e False: -e DOI: -e In: | gsed
    's|\([^:]*\):\([0-9]*\):\([^:]*\):\(.*\)|--- a/\1\n+++ b/\1\n@@ -\2,1
    +\2,1 @@\n-\3:\4\n+\3 :\4|' | git apply --unidiff-zero -

* DOC fix numpydoc format for param
2016-11-25 10:59:22 +01:00
Ibraim Ganiev 78dbcb2838 [MRG] fix #6101 GradientBoosting decision_function for sparse inputs (#6116) 2016-10-15 21:41:44 +11:00
Nelson Liu da118d0cb4 [MRG+3] Fix min_weight_fraction_leaf to work when sample_weights are not provided (#7301)
* fix min_weight_fraction_leaf when sample_weights is None

* fix flake8 error

* remove added newline and unnecessary assignment

* remove max bc it's implemented in cython and add interaction test

* edit weight calculation formula and add test to check equality

* remove test that sees if two parameter build the same tree

* reword min_weight_fraction_leaf docstring

* clarify uniform weight in forest docstrings

* update docstrings for all classes

* add what's new entry

* move whatsnew entry to bug fixes and explain previous behavior
2016-09-28 14:48:23 +10:00
Andreas Mueller 60a1356f31 [MRG + 1] More versionadded everywhere! (#7403)
* insert versionadded versionchanged directives in docstrings for 0.18

indicate where exception classes were moved from

* moved versionadded in the proper places
2016-09-27 16:19:47 -04:00