Commit Graph

216 Commits

Author SHA1 Message Date
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
Lars 17726d2481 Merge pull request #4141 from amueller/bootstrap_int_one_fix
[FIX] Bootstrap with test_size=1 fix
2015-01-24 15:24:18 +01:00
Thomas Unterthiner 5c5fbf5ab0 COSMIT pep8 cleanups 2015-01-21 21:54:11 +01:00
Andreas Mueller edb73cc693 FIX check for integer 1 before checking for floating 1 (isinstance(1, numbers.real) == True) 2015-01-21 15:53:03 -05:00
Thomas Unterthiner a6723edca5 ENH: cross-validate over predefined splits 2015-01-21 13:04:50 +01:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
akshayah3 91c03a433a Added helper function 2015-01-06 19:21:08 +05:30
akshayah3 5b9653334f Sparse inputs for fit_params 2015-01-05 16:14:36 +05:30
Andreas Mueller 46c1c42131 remove deprecated ``n_bootstraps`` parameter in Bootstrap cv object, verbose in FactorAnalysis and SelectorMixin. Also adjust some deprecation strings. 2014-12-29 13:53:42 -05:00
Andreas Mueller 7a38062c24 FIX backward compatibility.
force_arrays was never in a release, allow_nd was a legal option to ``train_test_split`` that raises an error in master.
2014-12-19 12:15:03 -05:00
Aldrian Obaja 1e8bdb859e FIX bug in fit_params assumed to be an array
Fixes gh-3957.
2014-12-15 18:07:05 +01:00
Gael Varoquaux 1d6566bd59 Merge pull request #3690 from queqichao/fix_bug_in_cross_validation_when_using_sparse_matrix_for_fit_params
+ Fix the bug of calling len when using sparse matrix for fit_params in ...
2014-11-24 23:37:33 +01:00
Luis Pedro Coelho 2f275de41d ENH Add cross_val_predict function
This function returns the cross-validated prediction for each element in
the input data (i.e., the prediction that is made when that object is in
the test set).
2014-11-03 11:51:10 +11:00
Michal Romaniuk 58be184f5f Enable grid search with classifiers that may throw an error on individual fits. 2014-10-02 10:03:17 +10:00
queqichao f1f9760ff6 + Fix the bug of calling len when using sparse matrix for fit_params in cross_validation.py.
+ Add test case for the above fix.
2014-09-22 23:09:25 -04:00
Nikolay Mayorov e8942057cc FIX Implemented correct handling of multilabel y in cross_val_score 2014-07-29 11:49:58 +02:00
Andreas Mueller c235c3b566 ENH add allowed_sparse named argument for @ogrisel 2014-07-20 15:31:28 +02:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Andreas Mueller b080d93b5e ENH don't convert dataframes in grid search and cross-validation 2014-07-18 10:02:14 +02:00
Arnaud Joly 8de00d857f Merge pull request #3411 from lesteve/scheduled-removal-from-0.15
[MRG] Remove deprecated parameters whose removal was scheduled for 0.15
2014-07-17 16:57:30 +02:00
lesteve b12d1ac487 Remove deprecated 'score_func' and 'loss_func' parameters from sklearn.metrics.scorer.check_scoring. Amend the code in all the other places they were used. 2014-07-17 13:53:06 +01:00
Andreas Mueller 3c7818e8cf ENH allow y to be a list in GridSearchCV, cross_val_score and train_test_split. 2014-07-16 10:59:57 +02:00
Ronald Phlypo ee6a173f18 Merge branch 'master' of https://github.com/scikit-learn/scikit-learn into bootstrap 2014-06-23 09:16:26 +02:00
Ronald Phlypo 59d6a11a57 bug fix and deprectation warning added to cross-validation 2014-06-21 21:39:51 +02:00
Alexandre Gramfort de824b1b1f FIX : allow nd X for cross_val_score (was working in 0.14)
Fixes #3277.
2014-06-15 14:27:08 +02:00
GaelVaroquaux ba922d131f BUG: fix doctests 2014-05-05 09:43:11 +02:00
Jeffrey Blackburne b67ba03f4c ENH shuffle option for StratifiedKFold 2014-05-05 12:53:01 +10:00
Robert McGibbon 1efb5948a8 Change the order of test_score and train_score in the _fit_and_score docstring to reflect what the code actually does 2014-05-01 23:02:38 -07:00
Yung Siang Liau 3f9dff942d FIX: Add allow_nans option to check_arrays
Grid search and cross validation should not panic when seeing NaNs
in the input arrays, because that breaks Imputer.
Fixes #2774 and #3044.
2014-04-13 16:59:52 +02:00
Lars Buitinck 6b38d3b305 FIX cross_val_score to take y as an *optional* list
Sorry for the noise.
2014-03-27 11:44:20 +01:00
Lars Buitinck aeb1dcdf1f FIX cross_val_score to take y as a list 2014-03-27 11:20:30 +01:00
Andrew Tulloch 5ce5e81f9d [Cross Validation] Use itertools.izip consistently across Python 2/3
when computing folds in StratifiedKFold.

This isn't an especially hot code path, but it seemed to be preferable
for consistency.
2014-03-03 12:18:34 +00:00
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00
Lars Buitinck c997cdee9f COSMIT pep8 + full stop police
metrics/tests/test_score_objects.py made stricter by replacing . with \.
in regular expressions.
2014-02-01 15:28:53 +01:00
Gael Varoquaux 58da238145 BUG: avoid same indices in test and train
COSMIT: better names as suggested @schwarty

Address comments by @schwarty
2014-01-21 19:25:20 +01:00
Gael Varoquaux 41b312c604 BUG: StratifiedShuffleSplit not obeying n_train
StratifiedShuffleSplit was not giving the n_train and n_test requested
2014-01-21 19:25:20 +01:00
Gael Varoquaux 06d7536fe8 WIP: fix StratifiedShuffleSplit 2014-01-21 19:25:20 +01:00
Mathieu Blondel de2be61e46 Rename fit_and_score to _fit_and_score. 2014-01-16 12:43:17 +09:00
Mathieu Blondel d818519c13 Rename _split_with_kernel to _safe_split.
Kernels are not always used so I find this name better.
2014-01-16 12:43:16 +09:00
Alexander Fabisch aaa4f81b67 Rename '_split' to '_split_with_kernel' 2014-01-16 12:43:16 +09:00
Alexander Fabisch b1dfa07ae2 Remove 'fit_grid_point' from 'BaseSearchCV' 2014-01-16 12:43:16 +09:00
Alexander Fabisch 0f591e745b Remove helper function '_fit' 2014-01-16 12:43:16 +09:00
Alexander Fabisch 7c60251d11 Fix PEP8, style and documentation 2014-01-16 12:43:16 +09:00
Alexander Fabisch 0a000e0b2b Replace '_fit_estimator' by '_cross_val_score' 2014-01-16 12:43:16 +09:00
Alexander Fabisch f95219f05d Clean up 2014-01-16 12:43:16 +09:00
Alexander Fabisch 526d1dd945 check_scorable returns scorer 2014-01-16 12:43:16 +09:00
Alexander Fabisch 8d3667d3ae Log score and time in 'cross_val_score' 2014-01-16 12:43:16 +09:00
Alexander Fabisch 712d3d0d90 Move set_params back to fit_grid_point 2014-01-16 12:43:16 +09:00
Alexander Fabisch 50459faaf2 Return time 2014-01-16 12:43:16 +09:00
Alexander Fabisch 2bc3d49cfb Merge `fit_grid_point` into `_cross_val_score` 2014-01-16 12:43:16 +09:00