Jérémie du Boisberranger
c6395d20e0
MNT Clean deprecation of dtype='numeric' + array of strings in check_array for 1.1 ( #22589 )
2022-03-22 14:50:11 -04:00
Dimitri Papadopoulos Orfanos
ee5a1b69d1
DOC, MNT Typos found by codespell ( #22906 )
2022-03-20 19:16:39 +01:00
Vera Komeyer
34dd69bc15
DOC Ensures that check_random_state passes numpydoc validation ( #22787 )
2022-03-12 17:27:57 +01:00
Olivier Grisel
279388d9ed
DOC Improve get_feature_names_out docstrings ( #22718 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-07 13:02:12 -05:00
Claudio Salvatore Arcidiacono
7a9677ee09
FIX Change error message of check_X_y when y is None ( #22578 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: claudio.arcidiacono <claudio.arcidiacono@ing.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-03-07 11:01:19 -05:00
Jérémie du Boisberranger
33e4843e88
MNT remaining clean up for 1.1 ( #22643 )
2022-03-02 14:01:51 +01:00
Thomas J. Fan
5d1571db5c
FIX Supports numpy strings and array-like in KMean.init ( #22154 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-02-15 17:35:40 +01:00
Ugo Marchand
9712e80bbc
DOC Ensures that assert_all_finite passes numpydoc validation ( #22470 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-14 10:45:07 +01:00
Thomas J. Fan
4ff0767087
ENH Better error message for check_scalar ( #22218 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-11 16:15:30 +01:00
Thomas J. Fan
5f75acdd12
MNT Bump joblib version dependency to 1.0.0 ( #22365 )
2022-02-09 13:47:18 +01:00
Thomas J. Fan
c0c504d105
FIX Only raise feature name warning with mixed types and strings ( #22410 )
2022-02-08 19:14:40 +01:00
Thomas J. Fan
d7feac0ccf
ENH Adds feature_names_out to preprocessing module ( #21079 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: 赵丰 (Zhao Feng) <616545598@qq.com>
Co-authored-by: Niket Jain <51831161+nikJ13@users.noreply.github.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-02-07 12:09:57 +01:00
mlant
1e4ac040ee
ENH added consistency checks for args of check_scalar function ( #22027 )
...
Co-authored-by: mlant <marie.lanternier@free.fr>
2022-01-25 12:04:18 -05:00
Ross Barnowski
24106c2149
DOC Fix incorrect heading underline length in docstrings ( #22278 )
2022-01-24 09:58:33 -05:00
Sven Eschlbeck
fa738433c6
DOC Correct wrong default value in check_scalar docstring ( #22032 )
2021-12-21 11:25:30 +01:00
Sachin Yadav
787e4d2e5f
DOC Add interval notation for include_boundaries in documentation check_scalar ( #21955 )
2021-12-17 09:33:20 +01:00
Reshama Shaikh
6077d52b70
DOC Ensures that function passes numpydoc validation: column_or_1d function ( #21591 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-15 19:03:57 +01:00
Reshama Shaikh
d40943a576
DOC Ensures that function passes numpydoc validation: has_fit_parameter ( #21590 )
2021-11-15 08:22:56 +01:00
MaggieChege
53016b854f
DOC Ensures that as_float_array passes numpydoc validation ( #21502 )
...
Co-authored-by: ciku <maggie@hellotractor.com>
2021-10-29 17:16:40 +02:00
Olivier Grisel
2571cb2989
Improve validation messages with infinite data ( #21219 )
...
* Improve validation messages with infinite data
* Extend and fix validation tests
* Test and fix extended error message
* data_name => input_name
* Mention estimators that natively support missing values
* More informative error message
* cosmetic
* typo
* Fix broken tests
* Fix test_knn
* Add changelog entry
* Fix broken test for param search models
* Missing input names
* Allow Y and y in estimator checks
* Add missing input names
* Fix input_name for FunctionTransformer
* More missing input names
* Update test
* More test fixes on scores
* Simplify message to avoid to make generic fallback meaningful
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* More informative estimator checks failure messages
* Make sure the estimator name is passed correctly in _validate_data
* Simplify calls to _validate_data
* Handle estimator name in private _check_y helper
* More specific error message
* Add estimator to check_X_params and check_y_params
* Add .. versionadded flags in public docstrings
* Update changelog
* Improve _validate_data's docstring
* Typo in doc/whats_new/v1.1.rst
* Make _check_estimator_name return None if estimator == None
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* check_params dict updates with style
* Increase test coverage
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 15:59:57 +02:00
Thomas J. Fan
bd87153741
ENH Adds float extension array support to check_array ( #21278 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-10-28 23:06:40 +02:00
Thomas J. Fan
87838c20cc
ENH Adds feature names out to decomposition module ( #21334 )
...
* ENH Adds feature names out to decomposition module
* DOC Adds whats enw
* REV Removes module not in decomposition
* ENH Uses a mixin
* REV Better merge
2021-10-27 13:08:37 +02:00
Jauhar
8d26900b1b
DOC Ensures that sklearn.utils.validation.indexable passes numpydoc validation ( #21431 )
...
Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-24 11:01:08 +02:00
Thomas J. Fan
d1285a9232
DOC Adds missing imports into examples and test them ( #21186 )
2021-09-29 13:51:33 +02:00
Dimitri Papadopoulos Orfanos
f71c031314
DOC Typos found by codespell ( #21069 )
2021-09-17 19:04:54 +02:00
András Simon
9c84abd771
ENH add `only_non_negative` parameter to `_check_sample_weight` ( #20880 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-08 13:45:48 +02:00
Guillaume Lemaitre
8bf3aa58df
FIX change the meaning of include_boundaries in check_scalar ( #20921 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-07 19:10:56 +02:00
Thomas J. Fan
4abd9f2d9e
API Implements get_feature_names_out for transformers that support get_feature_names ( #18444 )
...
Co-authored-by: Andreas Mueller <andreas.mueller@columbia.edu>
Co-authored-by: Andreas Mueller <andreasmuellerml@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-07 10:56:57 +02:00
Thomas J. Fan
0417fa7455
TST Adds dtype check for feature_names_in_ ( #20891 )
2021-09-01 10:07:17 +02:00
Guillaume Lemaitre
bd077e30ab
MNT use check_scalar to validate scalar in AffinityPropagation ( #20723 )
...
* MNT use check_scalar to validate scalar in AffinityPropagation
* refactor
* Apply suggestions from code review
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
* iter
* iter
* iter
* iter
* iter
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-31 12:38:41 +02:00
Adrin Jalali
3e7c04fe2c
ENH check_is_fitted calls __is_fitted__ if available ( #20657 )
2021-08-20 12:37:22 +02:00
Thomas J. Fan
416898b7f4
ENH Adds Column name consistency ( #18010 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-17 14:48:21 +02:00
Thomas J. Fan
3ae7c76153
STY Enables black with experimental_string_processing=true ( #20412 )
2021-06-29 09:47:04 +02:00
Thomas J. Fan
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04:00
Jérémie du Boisberranger
536f3ccd75
MNT Allow to only validate y in _validate_data ( #20227 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-15 17:14:19 +02:00
Thomas J. Fan
6850c04186
API Deprecates support for np.matrix in check_array ( #20165 )
...
* API Deprecates support for np.matrix in check_array
* DOC Adds whats new
* ENH Adds link to numpy.matrix
2021-06-01 23:22:47 +02:00
Tom Dupré la Tour
f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args ( #20002 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Albert Villanova del Moral
c957eb37b5
FIX Ignore zero sample weights in precision recall curve ( #18328 )
...
Co-authored-by: Alonso Silva Allende <alonsosilva@gmaiil.com>
2021-04-05 18:28:44 +02:00
Thomas J. Fan
80f923e00d
ENH num_features for a 1d collection of dicts is undefined ( #19740 )
...
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-29 16:12:54 +02:00
Thomas J. Fan
d996eaf088
ENH Adds _num_features for array-likes ( #19633 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-16 15:14:25 +01:00
Yosuke KOBAYASHI
81a56bd8bf
FIX Don't overwrite input sample_weight in LogisticRegression ( #19182 )
2021-02-01 21:15:36 +01:00
Guillaume Lemaitre
2218ec4622
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages ( #19005 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-12-18 16:09:19 +00:00
Thomas J. Fan
f82525ee2f
CLN Deprecations position args in PartialDependenceDisplay.plot ( #18293 )
2020-11-27 12:34:55 +01:00
Thomas J. Fan
b197cc04e5
MNT Correctly errors in check_array with dtype=numeric and string/bytes ( #18496 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-11-18 18:18:31 +01:00
N. Haiat
2d0d62527f
DOC Fix docs of default values in sklearn.utils.validation ( #18401 )
2020-09-17 13:17:32 -04: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
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
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
bmaisonn
36ae6a06d6
DOC Fix documentation of default values in validation.py ( #17988 )
2020-07-25 16:14:21 -04:00