Commit Graph

84 Commits

Author SHA1 Message Date
Olivier Grisel a168a6cea2 STYLE cosmetics / unused import 2015-02-06 11:56:31 +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
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05: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
Jake VanderPlas 53f3b72660 make utils.check_symmetric future-proof 2014-12-31 09:00:18 -08:00
Jake VanderPlas 4ef7213a15 add more informative doc & error message in utils.check_symmetric 2014-12-29 10:31:00 -08:00
Jake VanderPlas 6444582e48 DOC: fix docstring of check_symmetric 2014-12-29 09:28:10 -08:00
Jake VanderPlas a21957e85c rename ensure_symmetric -> test_symmetric 2014-12-29 08:36:25 -08:00
Jake VanderPlas 7794d90471 MAINT: create ensure_symmetric utility function to check matrix symmetry 2014-12-28 21:02:35 -08: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
akshayah3 367845cacd Shifted the _check_sample_weight into BaseWeightBoosting class 2014-09-28 20:03:58 +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 88d473cd23 MAINT move comment to the appropriate place 2014-09-22 11:01:00 +02:00
Lars Buitinck ed0e6d7ae3 DOC multi_output parameter on validation function 2014-08-30 14:22:07 +02:00
Lars Buitinck eeffac663d DOC dtype parameter on validation functions
Fixes #3609.
2014-08-30 13:09:44 +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 f7549fd2ba Refactor input validation. 2014-07-20 10:40:04 +02:00
Andreas Mueller b080d93b5e ENH don't convert dataframes in grid search and cross-validation 2014-07-18 10:02:14 +02:00
Gael Varoquaux 6e3472bff7 DOC: more comments
Based on @amueller's review
2014-07-17 11:44:08 +02:00
Gael Varoquaux d104a3455b BUG: fix validation bug 2014-07-17 11:44:07 +02:00
Gael Varoquaux 7768a3059b ENH: enable y to only implement the array interface
For instance y could be a pandas' dataframe
2014-07-17 11:44:07 +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
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 deff7160ec FIX safe_asarray to handle LIL, DOK formats 2014-04-06 13:39:18 +02:00
Lars Buitinck c0657ce683 ENH less copying in validation for neighbors 2014-04-06 13:38:45 +02:00
Joel Nothman a786e12ace TST/COSMIT tests/comments for [sparse]center_data
Also removes sparse_std which was redundant
2014-03-30 22:07:48 +11:00
hamzeh c587d4f369 Trivial change in utils.check_arrays from > 2 to >=3 in attempt to rebuild Travis CI 2014-03-11 18:47:52 -04:00
hamzeh a48c51b6e0 Removed unnecessary variable n_dim in utils.check_arrays, removed unnecessary parens in same place 2014-03-11 13:39:17 -04:00
hamzeh eb04ccbc5e Implemented a check for ndim exceeding two in the utils.check_arrays function 2014-03-11 09:55:52 -04:00
Lars Buitinck 5f027f3e6d FIX error message from trees for large inputs
Fixes #2809 (hopefully).
2014-02-15 17:22:16 +01:00
Gilles Louppe 2079732643 FIX: use _assert_all_finite 2014-01-03 09:53:42 +01:00
Gilles Louppe 60a0c2f46c FIX: don't force finite in imputation 2014-01-03 09:49:14 +01:00
Lars Buitinck ef108b0b21 MAINT add authors to validation.py and pairwise.py 2013-10-12 20:09:41 +02:00
Lars Buitinck 2fb55da670 BUG duplicate finity check in input validation 2013-09-04 18:36:40 +02:00
Philippe Gervais 7fac2038dc Small fixes 2013-08-28 09:20:43 +02:00
Philippe Gervais e0011e4bd6 [BUG] safe_asarray() converts sparse matrices dtype
When called with a dtype kw argument, utils.safe_asarray() would
not change the dtype of a sparse matrix. This has been fixed.

Unit tests have been created for safe_asarray().
2013-08-27 10:28:27 +02:00
dengemann 83f48e4df1 FIX: performance.rst doctest 2013-08-25 11:16:21 +02:00
dengemann c9ff080ffa FIX: move inline comment to its right place 2013-08-25 11:16:21 +02:00
dengemann 7808e09d76 FIX: proper doctest 2013-08-25 11:16:21 +02:00
dengemann b86f3d5208 ENH: add new Warning class, improve tests, update docs 2013-08-25 11:16:21 +02:00
Gael Varoquaux 652a8735aa ENH: add a new DataConversionWarning
for implicit conversions such as raveling the y
2013-07-28 12:10:45 +02:00
Andreas Mueller 0292f14699 Try to raise and test warnings. 2013-07-28 12:10:45 +02:00
Andreas Mueller 8b54e23370 DOC adjust docstring as suggested by @gvaroquaux 2013-07-27 15:19:32 +02:00
Andreas Mueller 0c82974f7c FIX/ENH make StandardScaler convert int input to float and warn about it, instead of warning and rounding for dense and crashing for sparse. 2013-07-27 15:19:32 +02:00
Andreas Mueller d8f90d137d use column_or_1d, move it to utils 2013-07-26 17:16:27 +02:00