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`.
* 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
* 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
* 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
* use less nose.tools import to simplify future transition to activly developing test suites/runners
* assert_equal -> assert_array_equal in test_feature_hasher_pairs_with_string_values
and one missed ImportError that should be replaced with AttributeError
* test for py2.6 compat with except AttributeError
* fix importing of SkipTest
* force using nose in python2.6 for now
* there was no assert_dict_equal in py2.6. but we can use assert_equal
although failed test will look a little bit ugly
* remove nose imports from doc/datasets
Passing 1D arrays to check_array, without setting `ensure_2d` to false now
raises a deprecation warning before reshaping it. This will later throw an
error.
All Scaler classes also throw warnings when 1D arrays are passed.
All unit tests/doctests are modified to ensure that no 1D arrays are passed,
except in explicit 1D array tests where the warnings have been silenced.
Additional tests are also included which check for different 1D array cases.
2D array tests with one samples and one features are also added and where
they failed, `check_array` call has been modified to give a more useful error
message
ENH improve check_array to warn on dtype conversions
ENH make check_array accept several dtypes
ENH change validation with improved check_array
ENH change astype to avoid copy if possible
ENH remove warn_if_not_float