Commit Graph

164 Commits

Author SHA1 Message Date
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
Joris Van den Bossche 20f64eb111 MNT Follow force_all_finite for object dtype in check_array (#13254) 2019-03-01 07:02:37 +01:00
William de Vazelhes d31b67f23d FEA Neighborhood Components Analysis (#10058) 2019-02-28 15:58:07 +01:00
Hanmin Qin a73260db9c MNT Remove utils.validation._shape_repr (#13083)
Following dropping python 2.X support
2019-02-04 08:18:17 +01:00
Raf Baluyot 1f5bcaeb39 FIX float16 overflow on accumulator operations in StandardScaler (#13010) 2019-01-26 18:15:18 +01:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Adrin Jalali 2bd87f6ed8 Remove python < 3.5 from CI (#12746) 2018-12-14 10:53:12 +01:00
Joris Van den Bossche 4f5dd77d19 BUG: fix check_array on pandas Series with custom dtype (eg categorical) (#12706)
Closes #12699. Related to #12625
2018-12-03 21:25:52 +11:00
Andreas Mueller 104f684791 FIX check_array dtype check for pandas series (#12625) 2018-11-21 09:23:01 +11:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11:00
Zach Miller 5d8dfc9677 FIX SkLearn `.score()` method generating error with Dask DataFrames (#12462) 2018-11-06 21:46:13 +11:00
Dmitry Vukolov c8a4132774 DOC check_array() and check_X_y() documentation update (#12340) 2018-10-10 21:16:44 +11:00
Jacopo Notarstefano a1be3254c0 MNT Make check_X_y raise a better error when y is None (#12283) 2018-10-05 18:35:04 +08:00
Tom Dupré la Tour a11154e727 [MRG] improve check_non_negative for sparse matrices (#12106) 2018-09-27 14:13:50 +02:00
Nicolas Hug 6d15840432 DOC Fixed doc issues for utils module (#11445) 2018-07-22 15:23:11 +10:00
Gael Varoquaux 47d3b3c30f [MRG] TST: avoid DeprecationWarning on latest joblib (#11625) 2018-07-20 16:13:50 +02:00
Joel Nothman 14e7c328df Restructure access to vendored/site Joblib (#11471)
In order to fix #11408, this swaps `joblib` and `_joblib`. It however, allows users to access joblib's `Memory` or `Parallel` functionality without accessing `sklearn.externals._joblib` by importing `Memory`, `Parallel`, etc. into `sklearn.utils`.
2018-07-17 18:02:11 +02:00
Joan Massich 2d7567f9f7 Rework warning in check_array when silent convert string to float (#11577) 2018-07-17 09:17:21 -05:00
William de Vazelhes 42e6d4e199 ENH warn_on_dtype for DataFrames (#10949) 2018-06-28 22:00:21 +10:00
Joel Nothman a7e17117bb [MRG] Large sparse matrix support (#11327) 2018-06-25 15:15:11 +00:00
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +10:00
Loïc Estève 9ea723f07a [MRG+1] Read-only memmap input data in common tests (#10663) 2018-04-23 14:58:40 +02:00
Ryan 7108d17be4 [MRG+1] Fix #10229: check_array should fail if array has strings (#10495)
* Add deprecation warning to check_array for flexible array w/ dtype=numeric
2018-02-23 00:08:52 +11:00
Guillaume Lemaitre 4c99cd4aa2 [MRG+1] MAINT dissociate nan and inf in check_array (#10459) 2018-01-18 13:56:41 +01:00
Liam Geron 202b5321f1 MAINT Remove redundancy in #9552 (#9573) 2017-10-27 06:57:20 +11:00
Pravar D Mahajan ecc96be8c5 [MRG] Raise exception on providing complex data to estimators (#9551)
* Modifies model_selection.cross_validate docstring (#9534)

- Fixes rendering of docstring examples
- Instead of importing cross_val_score in example, cross_validate is imported

* raise error on complex data input to estimators

* Raise exception on providing complex data to estimators

* adding checks to check_estimator for complex data

* removing some unnecessary parts

* autopep8 changes

* removing ipdb, restoring some autopep8 fixes

* removing ipdb, restoring some autopep8 fixes

* adding documentation for complex data handling

* adding one line explanation for each test case
2017-09-01 11:26:19 +02:00
Loïc Estève 75b0448672 DOC improve check_memory related docstrings (#9649) 2017-08-31 09:05:48 +10:00
Kumar Ashutosh e66aa6dc70 ENH Ducktyping to allow for alternative Memory implementations (#9584) 2017-08-30 15:21:24 +10:00
Taehoon Lee 27bbdb570b Fix typos (#9320) 2017-07-12 18:05:21 +10:00
(Venkat) Raghav, Rajagopalan b6f8865b0a [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (#9206)
* add automatic test of docstrings for function / method signatures using numpydoc
2017-07-11 18:42:10 +02:00
Andreas Mueller 5271a193c3 MRG Sphinx fixes (#9155) 2017-06-28 17:00:13 +02:00
Joan Massich 06d0e0da01 [MRG + 2] improve check_array error message (#9126) 2017-06-26 11:10:39 +02:00
Joan Massich 90cfb4815a [MRG+2] Make `check_array` Error message independent of variable name (#9068) 2017-06-14 23:54:47 +10:00
Joan Massich 7cfec782c7 [MRG+2] Ridge linear model dtype consistency (all solvers but sag) (#9033) 2017-06-14 23:26:55 +10:00
Joel Nothman e31c4f1e9e DOC List more utils in API ref (#8827) 2017-06-08 15:31:26 +02:00
Joel Nothman ee88cf44ea [MRG+1] Option to suppress validation for finiteness (#7548)
* ENH add suppress validation option

* TST skip problematic doctest

* Rename SUPPRESS_VALIDATION to PRESUME_FINITE

* Change PRESUME_ to ASSUME_ for convention's sake

* DOC add note regarding assert_all_finite

* ENH add set_config context manager for ASSUME_FINITE

* Make ASSUME_FINITE private and provide get_config

* Fix ImportError due to incomplete change in last commit

* TST/DOC tests and more cautious documentation for set_config

* DOC what's new entry for validation suppression

* context manager is now config_context; set_config affects global config

* Rename missed set_config to config_context

* Fix mis-named test

* Mention set_config in narrative docs

* More explicit about limmited restoration of context

* Handle case where error raised in config_context

* Reset all settings after exiting context manager
2017-06-08 13:42:17 +02:00
Guillaume Lemaitre 92cb166647 [MRG] DOC Homogeneous deprecation in docstring (#8907)
Update developers doc to use "deprecated" sphinx directive.
2017-05-23 08:42:08 +02:00
guiniol 45d9182e6d [MRG+1] Fix float size in as_float_array (#8598)
* Fix float size in as_float_array

* Add tests for small ints in as_float_array

* Add test for object dtype

with minor tweaks
2017-03-21 16:13:48 +01:00
Kat Hempstalk daeba62b9c [MRG+2] Fixed assumption fit attribute means object is estimator. (#8418) 2017-02-21 14:20:05 +01:00
Josh Karnofsky e5ceda88f2 FIX check_array's accept_sparse param now takes true/false/str/list, but not None (#7937) 2016-12-20 21:45:43 +11:00
Andreas Mueller 5c4b1bb231 [MRG+1] Housekeeping Deprecations for v0.19 (#7927)
* remove stuff to be removed 0.19

* more changes

* remove classes from 0.19 whatsnew

* remove _LearntSelectorMixin

* remove ProjectedGradientNMF, load_lwf_*

* minor fixes

* remove more copy from logistic regression path

* remove lda, qda from __init__.__all__

* remove pg solver in nmf from tests etc

* remove class_weight="auto" from tests

* doctest change for decision_function_shape="ovr"

* remove transfrom from tree test, minor fixes to tree tests

* some fixes in the tests

* undo changes in functions which still allow 1d input...

* also allow 1d in scale

* more test fixes...

* last test fixes in forest and tree

* svm default value change doctest failures

* pep8

* remove more class_weight="auto" stuff

* minor cosmetics in docstrings deprecated / removed behavior.

* say that store_covariance has been moved to __init__ in discriminant_analysis
2016-12-09 12:43:38 -05:00
Olivier Grisel e94c35d902 ENH make validation message easier to understand (#7294) 2016-08-31 21:35:57 +10:00
Nelson Liu ec8299abfc
DOC: fix typo in check_arrays 2016-05-07 18:26:33 -07:00