Commit Graph

580 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
Maria Telenczuk ca0065d3bf
BUG exchanging _safe_accumulator_op for np.average (#18537) 2020-10-06 17:14:28 +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
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
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
alexshacked 138dd7b88f
FIX be more permissive with using subtype in test_check_pandas_sparse_valid (#18277) 2020-08-27 17:17:57 +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
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
Bruno Charron 9b42b0cc7d
FIX Fix handling of binary_only tag in check_estimator (#17812)
Co-authored-by: Bruno Charron <bruno@charron.email>
2020-07-06 17:13:06 -04:00
Thomas J. Fan 692899d172
TST Fix estimator checks for classifers with poor_score tag (#16851) 2020-06-27 10:56:15 +02:00
Juan Carlos Alfaro Jiménez 547ead6c0c
MNT More replacements of numpy aliases with built-in types (#17707)
* MNT More replacements of numpy aliases with built-in types [scipy-dev]

* MNT More (manual) replacements of numpy aliases

* MNT More (manual) replacements of numpy aliases

* FIX Minor change

* MNT Trigger build [scipy-dev]

* FIX Minor change

* MNT Trigger build [scipy-dev]

* FIX More deprecations of numpy aliases [scipy-dev]

* MNT Silent numpy aliases warnings [scipy-dev]

* FIX Fix silent deprecations

* Trigger build [scipy-dev]

* FIX Add scape characters [scipy-dev]

* FIX Remove package specification from silent

* Trigger build [scipy-dev]

* Revert
2020-06-26 12:45:03 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Hirofumi Suzuki c29092d699
MNT define a parse_version function in sklearn.utils.fixes (#17670)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-24 13:35:49 +02:00
Lucy Liu f93f560bb9
ENH add support for sample weights in MAE (#17225) 2020-05-27 15:03:43 +02:00
Benjamin Bossan 76df39f703
ENH allow to specify which methods should run a check in CheckingClassifier (#15230)
Co-authored-by: BenjaminBossan <b.bossan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-05-26 11:37:12 +02:00
Juan Carlos Alfaro Jiménez f42cf8a2bc
MNT Replace kwargs by named args for resample (#17324) 2020-05-26 07:48:50 +10:00
Nicolas Hug 7494da6f52
MNT removed deprecated files generation (#17132) 2020-05-25 17:34:17 +02:00
Nicolas Hug 1931e142ed
Remove deprecated utils (#17133) 2020-05-20 22:03:54 +02:00
Thomas J Fan e770715c43
MNT Completes position arg deprecation (#17272)
* ENH Adds public functions with position args warning

* BUG Circlar import

* STY

* BUG Add keywords

* BUG Fixes warnings

* ENH Adds other public functions

* CLN Suggestion

* CLN Suggestion

* REV Revert pairwise

* ENH Positoinal args for compute_class_weight
2020-05-19 09:07:25 +02:00
Guillaume Lemaitre f2e873f41e
FIX/ENH CheckingClassifier support parameters and sparse matrices (#17259) 2020-05-18 11:36:27 -04:00
Nicolas Hug b0cd595536
MNT Ignore xfail_checks tag in check_estimator, with warning (#17222)
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-05-15 13:30:28 -04:00
Nicolas Hug 5f9555b3ea
FIX changed_only=True with kwargs parameters (#17205) 2020-05-13 13:02:41 -04:00
Nicolas Hug cbe9f08e35
MNT Put back and properly deprecate MaskedArray (#17199) 2020-05-13 08:52:25 +02:00
Thomas J Fan d40d993199
CLN Refactors _encode into two functions (#17101) 2020-05-12 14:23:00 -04:00
Nicolas Hug 4f5384b249
MNT Remove class support check estimator and parametrize_with_checks (#17134) 2020-05-10 17:11:39 -04:00
Roman Yurchak 192109af3d
MNT properly activate the env in the linting CI (#17177) 2020-05-10 13:22:55 -04:00
Nicolas Hug 226e5c478d
MNT Use Vt instead of V as returned by svd() (#17100) 2020-05-05 19:52:07 +02:00
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Thomas J Fan acbe13c07d
ENH Adds pandas IntegerArray support to check_array (#16508) 2020-04-28 19:00:12 +02:00
Nicolas Hug 964c830328
MNT Change print_changed_only default to True (#17061) 2020-04-27 18:22:21 -04:00
Nicolas Hug fc0041546a
Deprecate class support for check_estimator (#17032)
and parametrize_with_checks
2020-04-28 00:15:52 +02:00
Nicolas Hug 76ef8b0ef0
API kwonly for utils (#17046)
* kwonly for utils

* More

* fixed some

* some more

* iwannagohomepls

* accept_sparse not kwonly anymore
2020-04-27 15:42:01 +02:00
Roman Yurchak f621d8a392
Revert "API kwonly for utils (#17007)" (#17045) 2020-04-26 18:30:09 +02:00
Nicolas Hug 81c1e9d1f2
API kwonly for utils (#17007) 2020-04-26 18:05:16 +02:00
Nicolas Hug cb49ad4751
MNT removed _safe_tags utility (#16950) 2020-04-18 20:14:22 -04:00
Thomas J Fan 9901d8df13
Fix _deprecate_positional_args for kwonly args w/o default (#16850) 2020-04-14 09:38:32 -04:00
Thomas J Fan fa1ea2ab6f
ENH Adds support for pandas dataframe with only sparse arrays (#16728) 2020-03-27 12:09:23 +01:00
Roman Yurchak 75d3f29e72
MAINT Remove outdated numpy and scipy backports (#16725)
* Remove unecessary numpy & scipy backports

* More fixes

* Remove unused imports
2020-03-20 13:57:18 +01:00
Roman Yurchak 1cbe59ee06
CI Check for unused imports when linting (#16678)
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
2020-03-12 12:56:35 +01:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Guillaume Lemaitre b8c402722b
BUG avoid nan variance with sparse input in StandardScaler (#16466) 2020-02-27 00:00:22 +11:00
Thomas J Fan f703b85814
ENH Improves efficiency of ColumnTransformer for string keys (#16431) 2020-02-21 21:49:11 +01:00
Thomas J Fan c1696ed18a
TST Sets random state in test_csr_row_norms (#16509) 2020-02-21 16:11:44 +01:00
Jérémie du Boisberranger 769794249c
[MRG] new K-means implementation for improved performances (#11950) 2020-02-20 13:39:16 +01:00
Roman Feldbauer 9b39c4c4d2
TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +01:00
Alexandre Batisse 418e0d55d3
[MRG] CLN Remove the use of assert_raises in utils/ (#16337)
* CLN use pytest raises ctxt manager for class weights & estimators [skip ci]

* CLN use pytest raises ctxt manager for multiclass test

* CLN use pytest warns in estimator checks test

* CLN use pytest raises ctxt manager for random test

* CLN use pytest raises ctxt manager for sparsefuncs test

* CLN use pytest raises ctxt manager for testing utils tests

* CLN use pytest raises ctxt manager for utils tests

* CLN use pytest raises ctxt manager for validation tests

* revert test_estimator_check.py to upstream master
2020-02-02 14:44:19 +01:00