Commit Graph

1638 Commits

Author SHA1 Message Date
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
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 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
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
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
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 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
N. Haiat 74b632a1aa
DOC Fix docs of default values in _estimator_hhtml_repr (#18385) 2020-09-21 17:11:09 -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
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
N. Haiat 2d0d62527f
DOC Fix docs of default values in sklearn.utils.validation (#18401) 2020-09-17 13:17:32 -04:00
N. Haiat 6a9fe2a48c
DOC Fix docs for default values in sklearn.utils.extmath (#18399) 2020-09-17 13:17:08 -04:00
N. Haiat 1aded54711
DOC Fix docs for default values in sklearn.utils.sparsefuncs (#18400) 2020-09-17 13:08:24 -04:00
N. Haiat 80f588ac9c
DOC Fix documentation of default values in sklearn.deprecation (#18387)
Co-authored-by: Frans Larsson <frans.larsson@gmail.com>
2020-09-17 12:57:58 -04:00
Guillaume Lemaitre 21569e719c
TST Common test preserve dtype (#18054)
Co-authored-by: Sebastian Kießling <sebkies@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-08 10:13:53 +02:00
N. Haiat a27add7e0b
DOC Fix documentation of default values in sklearn.utils._mocking.py (#18351)
* DOC Fix documentation of default values

* Update sklearn/utils/_mocking.py

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>

* Update sklearn/utils/_mocking.py

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>

* DOC Fix documentation of default values in sklearn.feature_extraction.text.py

* refixing DOC _mocking.py linting

* DOC refix delete unwanted commit

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-09-07 17:31:18 +02:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Harsh Soni c50597926f
ENH Allow precomputed mask as input for MissingIndicator (#15089)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Vermasoumitra020 <sonisoumitra@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-31 16:26:38 -04:00
Frans Larsson e103b53b8d
DOC Fix default values for utils.extmath.py (#18295) 2020-08-31 12:48:31 +02:00
Frans Larsson 6e56006a6a
DOC Fix default values for utils._testing.py (#18296) 2020-08-31 12:45:51 +02:00
Anand Tiwari 2738e381ea
DOC fix erroneous statement regarding meta-estimator in all_estimators (#18231)
Co-authored-by: anandt <anandt@cvent.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-31 10:51:12 +02:00
alexshacked 138dd7b88f
FIX be more permissive with using subtype in test_check_pandas_sparse_valid (#18277) 2020-08-27 17:17:57 +02:00
Sylvain Marié 0bd45b5179
TST Fixed issue with small_pos_ratio on mac os x with python >= 3.7 due to floating point precision issue (#18270)
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
2020-08-27 10:38:31 +02:00
alexshacked 0111511ea3
FIX Raise proper error for sparse dataframe with mixed dtypes (#17992)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-25 13:54:05 -04:00
Frans Larsson 8b6555f9c1
DOC Add None as valid option to random_state for utils module (#18253) 2020-08-25 08:44:46 +02:00
Frans Larsson d4d5ed5f39
DOC fix docstring in utils._random.pyx following doc guideline (#18208) 2020-08-20 13:45:30 +02:00
Sylvain Marié acf195cc74
FIX use specific threshold to discard eigenvalues with 32 bits fp(#18149)
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
2020-08-13 13:57:04 +02:00
Henry eff1bdf3ee
DOC Add note on the max number of extmath.cartesian arguments (#16406)
Co-authored-by: Henry <hlc5v@virginia.edu>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-08-07 22:31:03 +02:00
Timo Kaufmann 86101d7ac8
TST Relax init parameter checks for unmutable objects (#17936) 2020-08-07 09:15:27 +02:00
Christian Kastner 5af6561441
TST Change expected result type np.int64 -> np.int (#18089)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-07 08:46:53 +02:00
Nicolas Hug 1dedc7e6a8
[MRG] Prototype 4 for strict check_estimator mode (#17361) 2020-08-06 12:02:15 +02:00
Frans Larsson 513d45c039
DOC Fix doc of defaults in sklearn.utils.graph.py (#18064) 2020-08-02 15:46:12 -04:00
Frans Larsson 6a29e2ca19
DOC Fix doc of defaults in sklearn.utils.validation.py (#18048)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-01 15:35:06 -04:00
Frans Larsson 6c9d8090fa
DOC Fix doc of defaults in sklearn.utils.estimator_checks.py (#18037) 2020-07-30 19:01:17 -04:00
Frans Larsson 9c7ec1b857
DOC Fix doc of defaults in sklearn.utils.multiclass.py (#18021) 2020-07-28 14:46:06 -04:00
bmaisonn 36ae6a06d6
DOC Fix documentation of default values in validation.py (#17988) 2020-07-25 16:14:21 -04:00
Frans Larsson 9760d9639f
DOC Fix documentation of defaults in sklearn.utils.class_weight (#17981) 2020-07-24 15:37:05 -04:00
Juan Carlos Alfaro Jiménez cd3dfa02a1
MNT Remove unnecessary try and except for numpy 1.3 (#17957) 2020-07-21 09:19:40 +10:00
willpeppo ad788aa476
MNT code hygiene on _mocking.py (#17894) 2020-07-12 16:06:53 -04:00
Frans Larsson 9763856df4
DOC Fix documentation of default values in sklearn.utils._encode.py (#17859) 2020-07-12 13:06:57 -04:00
Frans Larsson 762904d5bc
DOC Fix documentation of default values in sklearn.utils.optimize.py (#17881)
* update docstring according to guideline

* add space for consistency
2020-07-12 12:05:07 -04:00
Matthias Bussonnier 38378cbdd4
DOC Fix numpydoc section name Return -> Returns (#17879)
From a cursory glance this is the only place I found in sklearn (and to a wider extend scipy/numpy) that uses Return instead of Returns as described in the numpydoc format.
2020-07-11 17:32:12 -04:00
Thomas J. Fan e6622e6617
ENH Makes _deprecate_positional_args slightly faster (#17246) 2020-07-09 12:55:48 +02:00