scikit-learn/sklearn/utils
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
..
src MAINT Remove vendored C99 lgamma implementation (#14555) 2019-08-07 11:23:39 +02:00
tests FIX support scalar values in fit_params in SearchCV (#15863) 2019-12-31 13:02:45 +01:00
__init__.py MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
_cython_blas.pxd MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
_cython_blas.pyx [MRG] MAINT: Continue moving from CBLAS to scipy cython blas (#13084) 2019-02-20 19:23:34 +01:00
_fast_dict.pxd MAINT Make utlis.fast_dict private (#15223) 2019-10-14 00:36:36 -04:00
_fast_dict.pyx MAINT Make utlis.fast_dict private (#15223) 2019-10-14 00:36:36 -04:00
_joblib.py MNT remove unused imports (#14021) 2019-06-04 23:15:19 +10:00
_logistic_sigmoid.pyx MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
_mask.py MAINT Makes sure mask is private (#15091) 2019-09-25 19:34:21 +02:00
_mocking.py FIX ignore null weight when computing estimator error in AdaBoostRegressor (#14294) 2019-10-25 09:41:05 +02:00
_openmp_helpers.pyx [MRG] BUILD: warn instead of raise when openmp unsupported (#15174) 2019-11-13 10:03:12 +01:00
_pprint.py FIX Fixed array equality check in pprint (#13584) 2019-04-09 15:00:29 -07:00
_random.pxd MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
_random.pyx MAINT Replace absolute imports with relative imports (#13653) 2019-04-17 12:45:14 -04:00
_seq_dataset.pxd.tp MNT Make utils.weight_vector and utils.seq_dataset private (#15225) 2019-10-13 14:36:57 +02:00
_seq_dataset.pyx.tp MNT Make utils.weight_vector and utils.seq_dataset private (#15225) 2019-10-13 14:36:57 +02:00
_show_versions.py [MRG] BUILD: warn instead of raise when openmp unsupported (#15174) 2019-11-13 10:03:12 +01:00
_testing.py BUG fix pip3 ubuntu update by suffixing file (#15928) 2019-12-20 11:11:20 -05:00
_weight_vector.pxd MNT Include all pxd files in the package (#15626) 2019-11-26 17:37:26 +01:00
_weight_vector.pyx MNT Make utils.weight_vector and utils.seq_dataset private (#15225) 2019-10-13 14:36:57 +02:00
arrayfuncs.pyx MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
class_weight.py DOC docstring (shape= -> of shape) (#14640) 2019-10-02 20:54:32 -04:00
deprecation.py DOC Fix typos, via a Levenshtein-style corrector (#15923) 2019-12-19 16:26:02 -08:00
estimator_checks.py MNT Removed deprecated attributes and parameters -- ctnd (#15804) 2019-12-13 15:05:51 -05:00
extmath.py ENH safe_sparse_dot work on 3D+ arrays (#14538) 2019-09-10 21:45:57 +02:00
fixes.py MNT Remove utils.fixes.parallel_helper (#15232) 2019-10-14 07:45:10 -04:00
graph.py MNT simple deprecations and removals for 0.21 (#12238) 2018-10-11 14:56:37 -04:00
graph_shortest_path.pyx DOC Fix typos, via a Levenshtein-style corrector (#15923) 2019-12-19 16:26:02 -08:00
linear_assignment_.py MNT Replace DeprecationWarning with FutureWarning (#15080) 2019-10-29 15:39:26 +01:00
metaestimators.py MNT Make safe_indexing private (#15104) 2019-10-02 11:47:46 -04:00
multiclass.py ENH Support for list of lists or list of arrays multilabel indicator (continuation) (#14865) 2019-10-25 11:37:18 +11:00
murmurhash.pxd MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
murmurhash.pyx MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
optimize.py DOC correct url for preprocessing (#15853) 2019-12-10 13:58:41 +01:00
random.py Deprecate utils.{optimize.newton_cg,random.random_choice_csc} (#15040) 2019-09-27 09:46:17 +02:00
setup.py BLD lazy import of tempita to avoid cython dependency (#15313) 2019-10-25 14:42:18 +02:00
sparsefuncs.py DOC docstring (shape= -> of shape) (#14640) 2019-10-02 20:54:32 -04:00
sparsefuncs_fast.pyx MAINT Fix GCC warnings from Cython (#14077) 2019-07-01 18:55:29 +02:00
stats.py MAINT Replace absolute imports with relative imports (#13653) 2019-04-17 12:45:14 -04:00
validation.py FIX support scalar values in fit_params in SearchCV (#15863) 2019-12-31 13:02:45 +01:00