Commit Graph

14131 Commits

Author SHA1 Message Date
Olivier Grisel 548a4524b4
MNT n_features_in_ consistency in decomposition (#18557)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-10-08 09:47:24 -04:00
Guillaume Lemaitre 73732e5a0b
TST Add sample order invariance to estimator_checks (#18570) 2020-10-08 15:02:09 +02:00
Xethan cdff9b0b49
MNT Avoid nonlinear complexity for repr of nested estimators when print_c… (#18508)
* Avoid nonlinear complexity for repr of nested estimators when print_changed_only=True

* Automatically consider parameters with no default value as changed

* Use helper function for improved readability

* Add a non-regression test and a release note entry

Co-authored-by: nathan <nathan@sancare.fr>
2020-10-08 14:48:58 +02:00
Guillaume Lemaitre 2199de6492
TST enable to run common test on stacking and voting estimators (#18045)
* TST enable to run common test on stacking and voting estimators

* revert config changes

* revert unecessary change in _testing

* TST remove check_estimator from local files

* PEP8
2020-10-08 12:05:06 +02:00
RamyaNP f2635e2789
DOC minor update to _ranking.py (#18556) 2020-10-07 12:48:20 -04:00
Ankit Choraria 9120be9d65
DOC remove irrelevant parts in _validation.py (#18548) 2020-10-07 08:15:40 -04:00
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Thomas J. Fan 8731cd732b
ENH Uses _validate_data in other methods in the neural_network module (#18514) 2020-10-07 11:35:47 +02:00
Maria Telenczuk 64697c665f
MRG Sample weight for StandardScaler (#18510) 2020-10-07 10:10:30 +02:00
Nicolas Hug e2583d45f7
DOC put back original anchor to avoid breaking links (#18551) 2020-10-06 23:45:16 -04:00
Albert Villanova del Moral 58451568d3
FIX TruncatedSVD.fit_transform returns the same as fit.transform (#18528)
Co-authored-by: zhengruifeng <ruifengz@foxmail.com>
2020-10-06 22:47:10 +02:00
Nicolas Hug 4ddd079673
TST make sure regressors don't have a decision_function (#18547)
* updated check

* linting
2020-10-06 20:42:01 +02:00
Maria Telenczuk ca0065d3bf
BUG exchanging _safe_accumulator_op for np.average (#18537) 2020-10-06 17:14:28 +02:00
Nicolas Hug b9b883cd4f
MNT don't yield checks instead of returning early (#18536) 2020-10-06 09:50:40 -04:00
Alex Henrie f35457f1fc
MNT Remove unnecessary assignments from LogisticRegression.fit (#18539) 2020-10-05 22:43:38 +02:00
Kenny Huynh 0864c58968
DOC Clarify GaussianProcessRegressor default kernel behavior (#18518) 2020-10-05 18:58:14 +11:00
Albert Villanova del Moral 7e545e1724
DOC Fix versionadded for 0.23 (#18522) 2020-10-05 10:23:32 +11:00
Sam Kimbinyi aa4a10dbfa
DOC Remove double occurrences of `loss_curve_` and `t_` attributes in MLP (#18509) 2020-10-02 19:40:13 +02:00
Trevor Waite 2538489f4a
[MRG] Nearest Centroid Divide by Zero Fix (#18370)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-10-02 13:40:03 +02:00
Thomas J. Fan cffd98dfb4
TST Makes sure name is correct (#18503) 2020-10-02 11:39:42 +02:00
Albert Villanova del Moral 3bb138f879
ENH Incremental weighted mean and var (#18447)
Co-authored-by: Piotr Gaiński <dociebieaniuszlem@gmail.com>
2020-10-01 23:55:41 +02:00
Albert Villanova del Moral f7a8dd2877
DOC Fix version in whatsnew and docstring (#18504)
* Fix feature version in whatsnew

* Add versionaddded

* Add versionadded to whatsnew enhancement

* fix versionchanged format
2020-10-01 13:02:54 +02:00
Thomas J. Fan 21121f5099
TST Fixes column transformer tests (#18452) 2020-09-30 12:39:05 +02:00
Rachit Toshniwal 0e8b11af77
DOC Fixed typo in IterativeImputer: switch abs and max positions (#18478) 2020-09-30 12:37:44 +02:00
Nicolas Hug 521b3f289a
MNT Minor refactoring _fit_and_predict (#18471) 2020-09-30 12:35:46 +02:00
Guillaume Lemaitre 96b86b619f
MNT make error message consistent in brier_score_loss (#18183)
* MNT make error message consistent in brier_score_loss

* iter

* TST change error matching

* PEP8

* TST check consistent error message

* STY

* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* iter

* cleaner

* iter

* iter

* iter

* rename function with better name

* iter

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-29 17:30:06 -04:00
Thomas J. Fan 328409f8c9
MNT Use fetch_kddcup99_fxt to follow SKLEARN_SKIP_NETWORK_TESTS (#18487) 2020-09-29 17:00:15 -04:00
Thomas J. Fan 53fea53c6f
DOC Fix docstring for class MissingIndicator (#18446) 2020-09-29 21:24:32 +02:00
Albert Villanova del Moral 49ec619232
DOC Fix missing References (#18450) 2020-09-29 15:17:43 -04:00
Nicolas Hug 5721629fd3
MNT Use a pytest-like context manager in estimator_checks.py (#18418) 2020-09-28 15:05:43 -04:00
Nicolas Hug c654555ffb
MNT Revert "MNT Don't validate error messages when strict mode is off" (#18481) 2020-09-28 13:22:17 -04:00
Thomas J. Fan 339fe04e32
CLN Removes unneeded attribute in FastICA (#18445) 2020-09-28 09:01:18 -06:00
Nicolas Hug df61e9ed98
FIX accept uint8 X in hist-gbdt.predict (#18410)
* fixed dtype issue

* whatsnew

* dont pass lists
2020-09-26 09:55:35 +02:00
Shooter23 5fd30a4571
DOC Fix spelling in _optics.py docstring (#18463) 2020-09-26 08:52:37 +02:00
Nicolas Hug a49032cee0
MNT Don't validate error messages when strict mode is off (#18415)
in check_estimator
2020-09-26 08:50:24 +02:00
N. Haiat 896d4fad10
DOC Fix documentation of default values in sklearn.feature_extraction.text.py (#18360)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-24 11:21:56 -04:00
Frans Larsson c7d29e31bf
DOC Fix default values in _validation.py (#18337)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-09-24 11:20:53 -04:00
Albert Villanova del Moral 547ed6b182
DOC Improve links in cross_validation's user guide (#18379) 2020-09-24 11:19:09 -04:00
N. Haiat 0573aa1a3e
DOC Fix documentation of default values in sklearn.utils._testing.py (#18386)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-23 13:16:58 +02:00
Juan Carlos Alfaro Jiménez 09c41fe7f3
MNT Use substitutions for minimum dependencies in README.rst (#18301)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-23 13:01:05 +02:00
Nicolas Hug 4aada4e5fd
ENH Support unknown_value=np.nan in OrdinalEncoder (#18406) 2020-09-23 12:57:31 +02:00
Juan Carlos Alfaro Jiménez f3b64db3ed
MNT Add missing _deprecate_positional_args (#18436) 2020-09-23 12:54:42 +02:00
Juan Carlos Alfaro Jiménez 28d84693b3
MNT Put back positional args in KBinsDiscretizer (#18437) 2020-09-22 11:37:42 -04:00
N. Haiat 74b632a1aa
DOC Fix docs of default values in _estimator_hhtml_repr (#18385) 2020-09-21 17:11:09 -04:00
Lucy Liu a5f01e53bd
DOC Add ref links to make_scorer (#18421) 2020-09-21 17:10:09 -04:00
Albert Villanova del Moral 174f935149
FIX Preserve parameters when slicing a pipeline (#18429)
Co-authored-by: Paweł Biernat <pawel.biernat@ardigen.com>
2020-09-21 16:52:13 -04:00
Thomas J. Fan 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00
Alex Itkes 8b68ea165c
DOC specify default of error_score in cross_validate (#14488) 2020-09-18 15:43:52 -04:00
chaitanyamogal f7ca39813a
DOC Minor docstring update (#18428) 2020-09-18 09:32:15 -04:00
Frans Larsson a6e2963b35
DOC Fix default values in murmurhash.pyx (#18336)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-17 18:22:09 -04:00