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
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
Adrin Jalali
2467e1b84a
API make a few estimators' inits kw-only ( #16474 )
2020-02-20 22:48:28 +11:00
Thomas J Fan
70829b34df
MNT Small check sample weight refactor ( #16324 )
2020-01-30 22:11:41 +01:00
Rushabh Vasani
c2ede74db0
ENH add warning for pandas sparse Dataframe in check_array ( #16021 )
2020-01-27 12:30:55 +01:00
Adrin Jalali
46001e7cfb
FIX support scalar values in fit_params in SearchCV ( #15863 )
...
* support a scalar fit param
* pep8
* TST add test for desired behavior
* FIX introduce _check_fit_params to validate parameters
* DOC update whats new
* TST tests both grid-search and randomize-search
* PEP8
* DOC revert unecessary change
* TST add test for _check_fit_params
* olivier comments
* TST fixes
* DOC whats new
* DOC whats new
* TST revert type of error
* add olivier suggestions
* address olivier comments
* address thomas comments
* PEP8
* comments olivier
* TST fix test by passing X
* avoid to call twice tocsr
* add case column/row sparse in check_fit_param
* provide optional indices
* TST check content when indexing params
* PEP8
* TST update tests to check identity
* stupid fix
* use a distribution in RandomizedSearchCV
* MNT add lightgbm to one of the CI build
* move to another build
* do not install dependencies lightgbm
* MNT comments on the CI setup
* address some comments
* Test fit_params compat without dependency on lightgbm
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2019-12-31 13:02:45 +01:00
Thomas J Fan
9accce5519
BUG Adds attributes back to check_is_fitted ( #15947 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2019-12-27 11:46:27 +01:00
Loïc Estève
9626583e8f
ENH Improve column_or_1d error message ( #15926 )
2019-12-20 11:14:07 -05:00
Nicolas Hug
4256542b10
MNT Removed deprecated attributes and parameters ( #15803 )
2019-12-09 22:17:06 +08:00
Thomas J Fan
1b1c869ef3
BUG Fixes pandas dataframe bug with boolean dtypes ( #15797 )
2019-12-06 13:54:12 +01:00
smarie
343214085a
ENH KernelPCA raises error in case of numerical/conditioning issues ( #12145 )
2019-11-14 12:29:23 -05:00
Nicolas Hug
19ad136223
MNT Replace DeprecationWarning with FutureWarning ( #15080 )
...
* bruteforce renaming
* WIP
* WIP
* some more
* removed weird line
* update -Werror
* testiforest
* again
* Fixed some tests
* fixed some tests
* removed -Werror
* fixed test_docstring_param issue
* fixed some tests
* some more
* renamed to SklearnDeprecationWarning
* pep8
* updated docs
* pep8
* merge
* changed to FutureWarning
* fixes
* Update doc/developers/tips.rst
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
* avoid duplicates
* fixed warning for deprecations
* Still make CI break if DeprecationWarning isn't caught
* updated one warning
* fixed test
* fixed some renamings
* updated new dep warnings
* fixed bad import
* ignore warnings
* update again
* ignore futurewarning when walking packages
* Fixed test
* pep8
* Added whatsnew
2019-10-29 15:39:26 +01:00
Nicolas Hug
0f157e9475
ENH Minor update to error message from check_is_fitted ( #15357 )
2019-10-27 13:06:34 +01:00
Guillaume Lemaitre
1888a96908
FIX ignore null weight when computing estimator error in AdaBoostRegressor ( #14294 )
...
* FIX normalize with max of samples with non-null weights in AdaBoostRegressor
* iter
* update PR number
* PEP8
* iter
* iter
* ignore line coverage
* FIX use _check_sample_weight to validate sample_weight
* address jeremie comments
* fix inplace/mask copy operation
* add default value for wrapper
* PEP8
* Apply suggestions from code review
Co-Authored-By: jeremiedbb <34657725+jeremiedbb@users.noreply.github.com>
* apply jeremie comments
* increase coverage
* PEP8
* address adrin comments
* change import for mocking
* fix
* PEP8
* address comment adrin
2019-10-25 09:41:05 +02:00
Andreas Mueller
a91bae74aa
MNT Add estimator check for not calling __array_function__ ( #14702 )
2019-10-24 16:42:10 -04:00
Andreas Mueller
b9060780c7
ENH respect dtypes in pandas dataframes if homogeneous ( #15094 )
...
Only handles the case that all dtypes are numpy dtypes
2019-10-08 14:39:03 +11:00
Thomas J Fan
f45017338b
ENH Add Deprecating Position Arguments Helper ( #13311 )
2019-10-07 14:17:50 +02:00
Tim Bicker
4e9f97dba5
FEA Add Categorical Naive Bayes ( #12569 )
2019-09-24 07:38:22 +10:00
Roman Yurchak
e6a4dc97c9
FIX raise error for float to int casting with NaN, inf in check_array ( #14872 )
2019-09-20 11:04:45 +02:00
Nicolas Hug
081286a690
DOC clarification in docstring for _check_sample_weight ( #14870 )
2019-09-02 23:35:30 +02:00
Andreas Mueller
92af3dabbb
MAINT simplify check_is_fitted to use any fitted attributes ( #14545 )
2019-08-13 22:09:07 +02:00
Thomas J Fan
21959b335c
[MRG] MAINT Refactor removes assert from implmentation ( #14609 )
2019-08-13 07:57:10 +10:00
Roman Yurchak
5b88807df9
MAINT Improve stacklevel for warnings in helpers ( #14474 )
2019-07-26 12:05:49 +02:00
Andreas Mueller
aa4f31332d
MAINT Nicer error in num_samples if shape is not valid and there's no __len__ ( #14369 )
2019-07-23 19:50:40 -04:00
Roman Yurchak
fb169cd2b5
MAINT Common sample_weight validation ( #14307 )
2019-07-19 11:23:30 -04:00
Roman Yurchak
1015caf54d
MAINT Remove imports from sklearn.utils._joblib ( #13676 )
...
* Remove sklearn.utils._joblib imports
* Lint
* More fixes
2019-06-18 18:37:14 +04:00
Roman Yurchak
2fc3a85b3f
MAINT Use isinstance(x, numbers.Integral) to check for integer dtype ( #14004 )
2019-06-12 19:24:59 -04:00
Prathmesh Savale
4b9e12e73b
Deprecate "warn_on_dtype" from check_array ( #13382 )
2019-04-19 14:03:52 -04:00
jeremiedbb
e574990d1a
[MRG] MNT Clean some deprecation stuff for 0.21 ( #13443 )
2019-03-21 15:55:32 +01:00
Joris Van den Bossche
a304db98c5
DOC: add to docstring that check_array does not check for np.inf for object dtype ( #13348 )
2019-03-04 08:18:05 +01:00