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
Thomas J. Fan
e6622e6617
ENH Makes _deprecate_positional_args slightly faster ( #17246 )
2020-07-09 12:55:48 +02:00
Adrin Jalali
3a49e5f209
MNT deprecate ChangedBehaviorWarning and NonBLASDotWarning ( #17804 )
...
* deprecate ChangedBehaviorWarning and NonBLASDotWarning
* add whats_new entry
2020-07-05 22:32:08 +02:00
Ram Rachum
52cd1104ee
MNT use raise from in validation.py ( #17545 )
2020-07-04 17:44:50 -04: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
Alex Henrie
f38d381094
MNT Get rid of temporary dictionary in _deprecate_positional_args ( #17603 )
2020-06-15 22:34:29 -04:00
Gesa Stupperich
831a00a55e
DOC Fix documentation of default values in sklearn.utils.validation ( #17490 )
...
* Change format of default values in docstring
* Fixing default values documentation
2020-06-06 16:36:42 -04:00
Roman Yurchak
192109af3d
MNT properly activate the env in the linting CI ( #17177 )
2020-05-10 13:22:55 -04:00
Thomas J Fan
acbe13c07d
ENH Adds pandas IntegerArray support to check_array ( #16508 )
2020-04-28 19:00:12 +02:00
Thomas J Fan
9f015c8a14
FIX Mixed bool dtype in pandas ( #17008 )
2020-04-28 11:23:44 -04: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