Commit Graph

257 Commits

Author SHA1 Message Date
Joel Nothman 69827c4b58 TST Test check_consistent_length and TypeError with ensemble arg 2015-02-26 16:30:39 +01:00
Olivier Grisel feceab6f62 FIX test for consistent handling on empty input data 2015-02-26 10:45:06 +01:00
Hasil Sharma 3c3360d408 FIX Make Spectral Embedding deterministic 2015-02-26 09:07:57 +01:00
Lars Buitinck d90a8ae451 TST test last commit 2015-02-16 13:06:12 +01:00
Olivier Grisel d16e9eeb1b FIX stricter validation for non-empty input data 2015-02-14 00:39:26 +01:00
Loïc Estève 5c0c5c672c MAINT use absolute imports in tests
as per the guideline in:
http://scikit-learn.org/stable/developers/#coding-guidelines
2015-02-10 13:40:31 +01:00
trevorstephens f2431db3ec add test for None class_weights 2015-02-05 07:42:13 -08:00
trevorstephens 965bf51636 use safe in1d, use compute_sample_weight in ridge 2015-02-01 14:28:01 -08:00
trevorstephens c5fadff91c add compute_sample_weight util 2015-01-31 18:26:41 -08:00
Raghav R V 0bca2ffdfa FIX Refactor _is_fitted method into check_is_fitted.
DOC Make the docstring of NotFittedError class to conform to pep8.

DOC Make the error message of check_is_fitted more newbie friendly.
2015-01-12 00:33:40 +05:30
Raghav R V b3209c10fc MAINT Add new function to check if an estimator is fitted
TST Add tests for the _is_fitted and check_is_fitted fns
2015-01-12 00:32:20 +05:30
Raghav R V 88555987cc PEP8 Fix E101, E111 errors and W191, W293, W293 and W391 warnings. 2015-01-08 04:28:24 +05:30
Jake VanderPlas 53f3b72660 make utils.check_symmetric future-proof 2014-12-31 09:00:18 -08:00
Jake VanderPlas 358e16390c TST: add test of check_symmetric 2014-12-29 08:36:42 -08:00
Andreas Mueller 41e2c10a9e rename decorator 2014-12-19 17:27:27 -05:00
Andreas Mueller a1510a14c9 fix docstrings in sphinx 2014-12-19 15:47:10 -05:00
Andreas Mueller 37f0e2d956 add regression test for docstring delegation 2014-12-19 14:44:07 -05:00
MechCoder 2daa0289ef Renamed csc_row_median to csc_median_axis_0 2014-10-21 09:21:30 +02:00
MechCoder 91450c6960 FIX: Wrap csc_row_median around the _get_median imputer function 2014-10-21 09:21:30 +02:00
MechCoder 6f41bd1c88 ENH: Patches Nearest Centroid for metric=manhattan for sparse and dense data 2014-10-21 09:21:30 +02:00
MechCoder 4213c0461b DOC: Make it explicit that assert_warns clears the warning registry 2014-10-14 10:57:43 +02:00
MechCoder 34df94d6c5 TST: Test that assert_warns is reset internally 2014-10-13 23:13:52 +02:00
MechCoder 859992ae90 TST: Test that the warning registry is empty after assert_warns
Also minor doc change to the statement that this class was
copied from NumPy
2014-10-13 14:56:29 +02:00
MechCoder 54eb4784ba FIX: Remove test that tests state of warnings before and after assert_warns 2014-10-10 17:14:41 +02:00
akshayah3 4d94392b49 Added _check_sample_weight 2014-09-28 19:23:36 +05:30
akshayah3 16bc265ed8 dded tests to test_boosting 2014-09-28 14:58:55 +05:30
akshayah3 11d3696de2 Added make_fit_parameter method 2014-09-27 19:35:13 +05:30
Lars Buitinck 2666b702d2 TST stronger test_shuffle_on_ndim_equals_three 2014-09-25 19:37:35 +02:00
Will Lamond 766fb56ec0 FIX allow ndim>2 in shuffle
Fixes #3694.
2014-09-25 19:29:44 +02:00
Kyle Kastner b2d6a30aeb IncrementalPCA implementation 2014-09-22 13:12:29 -04:00
Thomas Unterthiner 52adb5cae7 ENH Add 'axis' argument to sparsefuncs.mean_variance_axis 2014-09-03 13:47:48 +02:00
Gael Varoquaux 39da06f567 Merge pull request #3438 from hamsal/sprs-out-dmy
[MRG+1] Sparse Target Dummy Classifier
2014-08-17 16:22:24 +02:00
Hamzeh Alsalhi 2198a84388 Manage explicit zeros manualy in class_distribution, test with explicit zeros 2014-08-09 10:33:35 -04:00
Hamzeh Alsalhi 2203422d0d Combine sparse and dense test for class_distribution 2014-08-09 09:56:09 -04:00
Hamzeh Alsalhi 9783de3b20 Test additional corner cases with random_choice_csc, error on proabilites not summing to 1 2014-08-08 21:17:47 -04:00
Hamzeh Alsalhi 2a3f504f1c Make cosmetic adjustments, Fix random.py header, use message with assert_warns 2014-08-08 18:48:23 -04:00
Hamzeh Alsalhi a5acf9d8a6 Test insertion of 0 class in random_choice_csc 2014-08-07 17:45:28 -04:00
Hamzeh Alsalhi 1873ef867c Test explicit sample wieghts in the sparse case of class_distribution 2014-08-07 17:20:07 -04:00
Hamzeh Alsalhi 94b7845c4b Test that class dtypes string and float fail in random_choice_csc 2014-08-07 17:00:00 -04:00
Hamzeh Alsalhi 0e314728dc Remove transposes from testing of random_choice_csc 2014-08-05 14:04:45 -04:00
Hamzeh Alsalhi f59e4da4ab Test random_choice_csc implicit, readability adjustments
Readability: remove unecessary transpose
2014-08-05 11:32:37 -04:00
Hamzeh Alsalhi 6c6ef87431 Test class_distribution w/ multioutput-multiclass sparse and dense 2014-08-05 10:09:52 -04:00
Hamzeh Alsalhi 5ba7df8b6c Include dense case support in class_distribution, pep8 revisions
Make The function previoulsy sparse_class_distribution support both the sparse and
dense case, and make some cosmetic updates for imporved readability
2014-08-05 09:45:20 -04:00
Hamzeh Alsalhi 81f82682d6 Move test_sparse_class_distribution to utils/multiclass from utils/sparsefuncs 2014-08-04 18:24:07 -04:00
Hamzeh Alsalhi 0ee10dc4cd move random_choice_csc to utils/random from utils/sparsefuncs 2014-08-04 17:41:31 -04:00
Hamzeh Alsalhi 22070464ea Make default parameters for test_random_choice_csc, and use almost equal
Use assert_array_almost_equal in test_sparse_class_distribution so
that slight numerical inacuracies are tolerated,

Move initilization of n_samples and random state to the parameters
of the function
2014-08-04 16:40:16 -04:00
Hamzeh Alsalhi e1bbd9aa96 Test sparse_class_distribution, Correct data indexing
Write a new test and update sparse_class_distribution for correctness,
the indexing of y.data in sparse_class_distribution is now done correctly
2014-08-01 11:38:24 -04:00
Hamzeh Alsalhi 292590cff5 Test ValueError for length mismatch between array in classes, and probs 2014-07-31 14:15:53 -04:00
Hamzeh Alsalhi 319d96eb55 Test random_choice_csc 2014-07-31 14:02:34 -04:00
Joel Nothman 0e31553de5 ENH Sparse multilabel target support
All multilabel metric calculation is now performed efficiently over
sparse CSR matrices.
2014-07-30 22:13:11 +10:00