Commit Graph

81 Commits

Author SHA1 Message Date
Andreas Mueller 1406cdfbb7 ENH use the numbers module introduced in Python 2.6 to check for number types.
Fixes 1255.
2012-10-24 18:44:53 +02:00
Andreas Mueller 0a818270f3 COSMIT rename n_iterations to n_iter in cross_validation 2012-10-10 19:10:29 +01:00
Andreas Mueller 1b367e56e5 ENH set n_fold default to 3, rename k to n_fold in all doctests, docs, and examples 2012-10-10 19:10:29 +01:00
Andreas Mueller ad4abddb67 DOC cleanup some docstrings (not scipy standard yet) 2012-10-10 19:10:29 +01:00
Andreas Mueller ceb80b0f29 ENH rename k to n_folds and n_bootstraps to n_iterations 2012-10-10 19:10:29 +01:00
Andreas Mueller 65cf66540d ENH remove some deprecated parameters / functions /estimators 2012-09-15 16:43:08 +01:00
Alexandre Gramfort c599668f1f fix failing test 2012-09-13 11:27:34 +02:00
Christian Jauvin cf9444b190 replaced assert with assert_true + error msg 2012-09-13 11:27:34 +02:00
Christian Jauvin ba857ef33c make sure that param has len attr + a test 2012-09-13 11:27:34 +02:00
Christian Jauvin 4de6d3f871 changed **fit_kwargs to explicit fit_params dict 2012-09-13 11:27:33 +02:00
Christian Jauvin 71f938839b Mechanism to propagate optional estimator.fit arguments when using CV 2012-09-13 11:27:33 +02:00
Vlad Niculae 7f76aa1def Add __all__ for half of the scikit 2012-09-04 18:00:49 +01:00
Vlad Niculae bc903588f4 Corrected deprecation schedule in cross_validation 2012-09-01 20:02:14 +02:00
Andreas Mueller 4c8c3be75c ENH more robust testing if parameter is int or float, as suggested by @larsmans in #1066. 2012-09-01 14:29:35 +02:00
Mathieu Blondel 7dd7bad886 Optim + cosmit in StratifiedShuffleSplit. 2012-08-30 23:34:29 +09:00
Andreas Mueller c9ee91b2ca FIX forgot some uniques 2012-08-30 07:31:16 +02:00
Andreas Mueller de100d9263 FIX doctest corrected (hopefully this is deterministic) + cosmit 2012-08-29 22:43:27 +02:00
Yannick Schwartz b2e6e19e4d Minor cleanup of StratifiedShuffleSplit 2012-08-29 22:26:23 +02:00
Yannick Schwartz 0f16b8aaaa Added validation for some corner cases in SSS 2012-08-29 22:26:23 +02:00
Yannick Schwartz e453af9136 Permute the train and test sets in SSS to avoid class-sorted folds 2012-08-29 22:26:22 +02:00
Yannick Schwartz d5db0fa6ad Removed redefinition of variable i in SSS 2012-08-29 22:26:22 +02:00
Yannick Schwartz 781326e84d pep8 fix 2012-08-29 22:26:22 +02:00
Yannick Schwartz 4d258430d6 Fixed n_test issue in StratifiedShuffleSplit 2012-08-29 22:26:22 +02:00
Yannick Schwartz 6445dee04a Fixed StratifiedShuffleSplit issue for unbalanced classes 2012-08-29 22:26:22 +02:00
Yannick Schwartz 5d8b384bf1 stratified shuffle split can return masks 2012-08-29 22:26:22 +02:00
Yannick Schwartz 694e57541b New stratified shuffle split version that only return indices arrays 2012-08-29 22:26:22 +02:00
Andreas Mueller 2fe9b066f7 ENH add verbosity parameter to cross_validation_score 2012-08-18 21:35:00 +01:00
Lars Buitinck 7896f7281d COSMIT don't call magic methods directly
One tricky case left in doc/sphinxext/gen_rst.py.

Also, don't use relative imports in tests.
2012-07-21 17:38:15 +02:00
GaelVaroquaux 05886db0f8 P3K: more Py3k compat changes 2012-05-11 11:24:27 +02:00
Subhodeep Moitra 66b96284e9 P3K: print back compatible with python2.6-7 with __future__ import 2012-05-11 11:21:01 +02:00
Subhodeep Moitra ef7b166756 PK3: __len__ returned float instead of int. Typecasted. 2012-05-11 11:21:01 +02:00
Subhodeep Moitra 47f459e2ec P3K : Fixed range iterator to be list 2012-05-11 11:21:01 +02:00
Subhodeep Moitra 68062a2462 P3K: Fixed print related Python3 errors 2012-05-11 11:21:01 +02:00
GaelVaroquaux 0adaacc40c API: n_test -> test_size in Bootstrap 2012-04-22 18:18:32 +02:00
David Marek f987efba72 Use numpy dtype.kind instead of isinstance 2012-04-22 16:43:34 +02:00
David Marek 95aba96467 Error checking now works for more types than just int and float. 2012-04-22 16:43:33 +02:00
David Marek 1503bd75ad Changed deprecation warning. 2012-04-22 16:42:55 +02:00
David Marek b3ca4eef19 ENH: train_size and test_size in ShuffleSplit (#721)
* renamed test_fraction and train_fraction to test_size and train_size
* deprecated test_fraction and train_fraction
* added tests for checking deprecation warnings
* modified documentation
2012-04-22 16:42:54 +02:00
Nelle Varoquaux 98310f5040 closes #703 - KFold has now an option to shuffle the data 2012-03-20 23:34:20 +01:00
Andreas Mueller 58148a2470 FIX get rid of some doctest errors (with the stricter nosetester) 2012-03-17 23:54:36 +01:00
GaelVaroquaux 44df9a2126 BUG: fix cross_validation on numpy 1.3
We need to use a backported version of np.unique
2012-03-12 18:42:08 +01:00
GaelVaroquaux d14f7b715e TEST: Fix cross_validation tests
@schwarty: please also run the doctests.

assert_less_equal is not in nose v 0.11.1
2012-03-12 16:20:49 +01:00
Yannick Schwartz 5a79a4ce63 Fixed random state, changed _validate_sss name, fixed _validate_stratified_shuffle_split bug 2012-03-12 16:20:48 +01:00
Yannick Schwartz 0f0a5aa568 changed train_fraction to train_size 2012-03-12 16:20:48 +01:00
Yannick Schwartz 88acd3c283 pep8 2012-03-12 16:20:48 +01:00
Yannick Schwartz 50a42f0144 sss raises error if a class has only one sample, added associated test 2012-03-12 16:20:48 +01:00
Yannick Schwartz 1c75bd88ff put sss validation in external function 2012-03-12 16:20:02 +01:00
Yannick Schwartz 0f21fce652 cleanup of arg check and doc update 2012-03-12 16:20:02 +01:00
Yannick Schwartz be82adc2eb added a StratifiedShuffleSplit in the cross validation schemes 2012-03-12 16:20:02 +01:00
Conrad Lee a02d47ebff cross_validation.py: fixed bug in text of error message 2012-03-01 13:24:24 +00:00