Mathieu Blondel
afb666c1d0
Use sklearn.utils.testing in tests.
2012-10-25 15:31:35 +09:00
Andreas Mueller
7a75fa3e1a
ENH remove deprecated sparse SVM class from cross-validation test.
2012-10-01 22:19:53 +01:00
Andreas Mueller
52a9f4dbb1
FIX remove test for deprecated parameter.
2012-09-15 16:43:08 +01:00
Alexandre Gramfort
13be59db7f
TST : use nose assert_true and not python assert
2012-09-13 11:47:26 +02: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
Andreas Mueller
713ba6006e
COSMIT pep8
2012-09-04 17:24:01 +01:00
Vlad Niculae
b515066ee4
Remove deprecated properties in naive_bayes
...
These were scheduled for removal in 0.12.
2012-09-01 20:02:14 +02:00
Andreas Mueller
bccfefa48c
FIX use backport of np.unique
2012-08-29 23:29:35 +02:00
Andreas Mueller
de100d9263
FIX doctest corrected (hopefully this is deterministic) + cosmit
2012-08-29 22:43:27 +02:00
Yannick Schwartz
55907d566a
Added tests for the StratifiedShuffleSplit to check the sizes of the training and testing sets, and that they don't overlap
2012-08-29 22:26:23 +02:00
Yannick Schwartz
1d21109f3e
Updated tests for SSS
2012-08-29 22:26:23 +02:00
Yannick Schwartz
d259e1f1c7
Fixed SSS test
2012-08-29 22:26:22 +02:00
Yannick Schwartz
5b5b3b341e
Added new tests for StratifiedShuffleSplit
2012-08-29 22:26:22 +02: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
Andreas Mueller
3e5f2e5e08
ENH backport "assert_less" and "assert_greater", rename "assert_lower" and use it everywhere :)
2012-05-06 15:43:29 +02:00
Andreas Mueller
77954f292e
FIXed many tests
2012-05-05 21:57:04 +02:00
Andreas Mueller
baab5f11ea
FIX don't use Python 2.5 method of checking for warnings
2012-04-23 21:50:39 +02:00
GaelVaroquaux
0adaacc40c
API: n_test -> test_size in Bootstrap
2012-04-22 18:18:32 +02:00
GaelVaroquaux
0040a41d87
ENH: use warning.catch_warnings
2012-04-22 16:43:34 +02:00
David Marek
f18a5f4511
TEST: assert_equal instead of assert
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
324abdd314
TEST: Tested ShuffleSplit with different types of test_size
2012-04-22 16:42:55 +02:00
David Marek
3c64e1b467
TEST: Added more tests for ShuffleSplit
2012-04-22 16:42:54 +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
Mathieu Blondel
1bb5a3c502
Factor tests.
2012-03-23 14:34:04 +09:00
Mathieu Blondel
24b80e3676
Test indices=False case.
2012-03-23 14:25:43 +09:00
Nelle Varoquaux
8ce939611b
Now tests the randomness of the KFolds when shuffle is True, and that all indices are returned in the different test folds
2012-03-20 23:34:20 +01:00
Nelle Varoquaux
e4c8911c8d
Added unit test for shuffle option in KFold
2012-03-20 23:34:20 +01:00
Andreas Mueller
9fa061c8f4
COSMIT make cross_validation nosetest slightly more readable and more pep8 respecting
2012-03-17 14:11:26 +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
50a42f0144
sss raises error if a class has only one sample, added associated test
2012-03-12 16:20:48 +01:00
Yannick Schwartz
68d77d41cc
fixed sss test
2012-03-12 16:20:02 +01:00
Yannick Schwartz
17ecf4ebb8
updated stratified shuffle split test
2012-03-12 16:20:02 +01:00
Yannick Schwartz
9419451224
added test for stratified shuffle split
2012-03-12 16:20:02 +01:00
GaelVaroquaux
79ec9335c5
BUG: ShuffleSplit should give reproducible splits
...
when seeded with a controled seed.
2012-02-20 19:50:52 +01:00
Andreas Mueller
361a058658
MISC don't use deprecated mean_square_error
2012-02-16 16:09:31 +01:00
Alexandre Gramfort
f0dc6116ad
API: set scale_C to True by default in libsvm/liblinear models
2012-02-11 14:42:47 +01:00
Olivier Grisel
1973e3b4d4
more tests
2012-02-10 23:18:52 +01:00
Olivier Grisel
106a6bf157
add tests for invalid argument + fixed a type error
2012-02-10 23:12:22 +01:00
Lars Buitinck
c4be24d552
BUG replace assert by custom exceptions
...
Partially fixes Issue #570
2012-01-18 23:31:39 +01:00
Olivier Grisel
0e646ef4b2
ENH: make ShuffleSplit able to subsample the data
2011-12-30 10:43:27 +01:00
Gael varoquaux
37c904d6c5
BUG: make the tests pass with numpy 2
2011-12-18 08:57:17 +01:00
Olivier Grisel
87a28cd44d
ENH: use integer indexing instead of boolean masks by default for CV
2011-11-06 10:36:17 +01:00
Olivier Grisel
ca48f82ab8
s/\bcross_val\b/cross_validation/g
2011-09-06 14:44:32 +02:00