Commit Graph

153 Commits

Author SHA1 Message Date
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
xyguo 8182f4bd04 Fixing default order docs of sklearn.utils.check_array 2016-04-29 18:08:11 -04:00
Raghav R V a228016585 Leading underscores for warnings imported from sklearn.exceptions
in other modules where warnings are deprecated.

Prefix warnings imported from sklearn.exceptions instead of
suffixing to prevent showing both the suffixed warning
and the deprecated warning during tab completion.
2016-01-08 12:40:10 -05:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Andreas Mueller 4bd1286328 COSMIT missing whitespace in error message 2015-11-02 16:24:02 -05:00
hlin117 c45075123a Added documentation about y nan handling in check_X_y 2015-10-21 11:11:08 -04:00
Raghav R V 857cb09254 FIX/ENH Make the moved class resilient to the deprecation patching 2015-10-20 01:24:35 +02:00
Raghav R V 61ae8d56c4 MAINT move deprecated into deprecation.py 2015-10-19 22:35:36 +02:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Vighnesh Birodkar f0121b7baa removed reshaping in fast_mcd and replaced by check_array
Added fast_mcd 1D test

fixed syntax error cause py34 was failing

raise value error in check_array when min_samples>=2

formatting

added checl_array to MCD class and a test for the class

pep8 formatting

fixed string formatting and modified tests
2015-10-09 18:41:59 -04:00
Olivier Grisel f1c5924b36 ENH better error message for estimators with ensure_min_* checks 2015-10-01 14:44:05 +02:00
Olivier Grisel 6966881328 MAINT use inspect.signature for introspection 2015-09-23 16:30:53 +02:00