Commit Graph

833 Commits

Author SHA1 Message Date
Andreas Mueller 8820701fdd skip OMPCV on travis by raising SkipTest in set_fast_parameters. 2015-03-02 11:24:07 -05:00
Olivier Grisel 1655a0468a TST check that constructor params are not mutated by fit 2015-02-27 19:40:55 +01:00
Joel Nothman 69827c4b58 TST Test check_consistent_length and TypeError with ensemble arg 2015-02-26 16:30:39 +01:00
Andreas Mueller 97d8341821 TST make TheilSenRegressor run faster in common tests, I could swear I did that before... 2015-02-26 10:17:46 -05:00
Andreas Mueller 8cf714cc9d remove special case for BaggingEstimator after merge of #4137 2015-02-26 10:14:02 -05: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
Raghav R V a59eee8fc9 FIX Add check_symmetric to __all__ 2015-02-24 18:16:20 -05:00
Olivier Grisel 3468e00471 Merge pull request #4057 from amueller/dtype_object_conversion
[MRG + 2] make check_array convert object to float.
2015-02-24 22:33:20 +01:00
Jan Hendrik Metzen 6ec7a0efbb TST Tests for the calibration module 2015-02-20 19:37:11 +01:00
Andreas Mueller 96d4b3e709 more robust check for dtype object 2015-02-18 14:11:58 -08:00
Olivier Grisel 4f3613f20e Merge pull request #4251 from ogrisel/fix-shape-format
[MRG] FIX broken test under 64 bit Python 2 / Windows
2015-02-16 14:10:09 +01:00
Olivier Grisel 0373cc00e9 FIX broken test under 64 bit Python 2 / Windows 2015-02-16 13:56:22 +01:00
Lars Buitinck d90a8ae451 TST test last commit 2015-02-16 13:06:12 +01:00
Lars Buitinck 414cda9b94 FIX TypeError not ValueError in is_fitted 2015-02-16 13:05:15 +01:00
Andreas Mueller cd5166e82f make check_array convert object to float.
fix dtype check, add test. unfriend all multi-output estimators on facebook.

try to fix what is happening to y (by doing nothing to y)

make test work...

Make everything accept object y or say "invalid label"

fix multioutput linear models

add test for sensible error message.
2015-02-15 12:13:41 -05:00
Olivier Grisel d16e9eeb1b FIX stricter validation for non-empty input data 2015-02-14 00:39:26 +01:00
Andreas Mueller 8ef0b9a82f fixes in GMM, TSNE, MDS, LSHForest, exclude SpectralEmbedding 2015-02-10 18:34:31 -05:00
Andreas Mueller e3e0827243 FIX check (and enforce) that estimators can accept different dtypes. 2015-02-10 15:37:15 -05: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
Olivier Grisel 620301b371 Merge pull request #4064 from amueller/pipeline_scoring_y_none
[MRG+1] FIX Pipelined fitting of Clustering algorithms, scoring of K-Means in pipelines
2015-02-06 19:22:40 +01:00
Andreas Mueller cd63accc05 Add test that score takes y, fix KMeans, FIX pipeline compatibility of clustering algorithms! 2015-02-06 13:26:42 +01:00
Olivier Grisel a168a6cea2 STYLE cosmetics / unused import 2015-02-06 11:56:31 +01:00
Gilles Louppe 420daac269 Merge pull request #4190 from trevorstephens/refactor_cw
MRG+2: Refactor - Farm out class_weight calcs to .utils
2015-02-06 08:24:27 +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
Loïc Estève bd9d16b5ee Simplify the code by using len 2015-02-01 18:48:05 +01:00
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
trevorstephens c5fadff91c add compute_sample_weight util 2015-01-31 18:26:41 -08:00
Andreas Mueller ac7c88cfdf TST set random state in check_classifiers_train 2015-01-20 13:13:08 -05:00
jnothman da90a0ff19 Merge pull request #4085 from jnothman/pairwise_parallel
[MRG] ENH use parallelism for all metrics in pairwise_{kernels,distances}
2015-01-17 22:44:52 +11:00
Joel Nothman 0c9377ece9 ENH use parallelism for all metrics in pairwise_{kernels,distances} 2015-01-17 21:48:17 +11:00
Andreas Mueller 494b8e5743 TST add test for sparse matrix handling in clustering
Make sparsity check check everything.

don't test everything. That would be nice but is out of scope :-/

catch special case of no core samples in DBSCAN

add nonregression test for sparse dbscan with no core samples.
2015-01-16 12:03:20 -05: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
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Olivier Grisel c1f3080e1d Merge pull request #4058 from amueller/cleanup_common_tests
[MRG+1] slight cleanup of common tests.
2015-01-15 11:14:07 +01:00
trevorstephens b541191754 Merge branch 'master' into rf-class_weight
Conflicts:
	doc/whats_new.rst
	sklearn/ensemble/forest.py
	sklearn/tree/tree.py
2015-01-12 19:15:21 -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 35938f2a03 FIX support_ parameter should be tested, not the coef_ 2015-01-12 00:33:40 +05:30
Raghav R V 0fce60d285 TST Add tests to assert if NotFittedError is raised appropriately 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 8e5bd8ef35 COSMIT / PEP8 Limit line length to 79 2015-01-12 00:32:20 +05:30
Andreas Mueller 16662744ac TST slight cleanup of common tests. 2015-01-11 13:54:29 -05:00
trevorstephens 9c7566e5df Merge branch 'master' into rf-class_weight
Conflicts:
	doc/whats_new.rst
2015-01-08 07:56:19 -08:00
Raghav R V 88555987cc PEP8 Fix E101, E111 errors and W191, W293, W293 and W391 warnings. 2015-01-08 04:28:24 +05:30
Raghav R V 0ec01104e9 COSMIT Remove trailing : in comment to facilitate pep8 autoindentation 2015-01-08 04:08:36 +05:30
Raghav R V 24c0efd12f PEP8 Fix E112 and E113 errors 2015-01-08 04:00:28 +05:30
Jake VanderPlas 53f3b72660 make utils.check_symmetric future-proof 2014-12-31 09:00:18 -08:00
Alexandre Gramfort 76a2a968ec Merge pull request #4024 from jakevdp/ensure_symmetric
[MRG+1] MAINT: create ensure_symmetric utility function to check matrix symmetry
2014-12-29 20:43:18 +01:00
Jake VanderPlas 4ef7213a15 add more informative doc & error message in utils.check_symmetric 2014-12-29 10:31:00 -08:00