Commit Graph

47 Commits

Author SHA1 Message Date
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
Andreas Mueller 1cc11479ae fix make ``make_y_1d`` save for lists. 2013-07-26 17:16:27 +02:00
Andreas Mueller 1c133e8eb5 ENH add "make_y_1d" to utils, use it in estimators where needed. 2013-07-26 17:16:26 +02:00
Nicolas Trésegnie b86071b403 Missing value imputation 2013-07-25 15:57:06 +02:00
Nicolas Trésegnie cec3061b94 Imp readability 2013-07-24 18:04:54 +02:00
Nicolas Trésegnie 5bba0a845f Add a copy parameter to safe_asarray() 2013-07-24 17:29:52 +02:00
Nicolas Trésegnie 043aaa1c82 Fix as_float_array behaviour when copy=True 2013-07-23 14:20:11 +02:00
Lars Buitinck 3840fecd7a ENH order *does* matter for sparse matrices 2013-07-11 11:50:23 +02:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Olivier Grisel 1967a0b323 P3K use six to have a python 2 & 3 compatible code base 2013-02-09 18:08:44 +01:00
Lars Buitinck 57b86fc434 P3K use six.string_types and six.PY3 2013-02-03 20:12:42 +01:00
Andreas Mueller 7819e182e2 DOC try to be as clear as possible. 2013-01-05 19:59:46 +01:00
Andreas Mueller de9bcc9fdb FIX do checks even if allow_lists 2013-01-05 19:59:46 +01:00
Andreas Mueller 03048ddb5f ENH more logical behavior, better docstring, tests 2013-01-05 19:59:46 +01:00
Andreas Mueller aac12fab1c ENH allow lists in check_arrays 2012-12-21 10:33:48 +01:00
Lars Buitinck fad7143c86 COSMIT refactor input validation code; skip some issparse calls 2012-11-28 01:02:06 +01:00
Andreas Mueller 3c46ebaa6e COSMIT pep8, removing unused imports and recommend ``toarray`` instead of ``todense`` 2012-11-24 20:12:33 +00:00
Andreas Mueller a351355510 ENH add checks for clustering, regressors, transformers 2012-11-10 15:53:57 +00:00
Andreas Mueller af101ccd10 ENH check in all classifiers in fit and predict that input is finite. inspired by #1027. 2012-11-10 15:53:57 +00:00
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 d50c0cb06c COSMIT pep8 2012-10-02 17:31:00 +01:00
Gael Varoquaux 7842748cf7 BUG: copy and keep ordering
This is due to a change in behavior in numpy that now does
not keep the ordering by default when copying.

Fixes #1186
2012-09-28 09:32:03 +02:00
Olivier Grisel 0eca37dc17 cosmit 2012-09-12 22:34:00 +02:00
Alexandre Gramfort e4838831d9 ENH : add copy param to array2d_or_csx 2012-09-02 23:16:52 +02:00
Alexandre Gramfort 2184c4698d ENH : add copy arg to array2d and new atleast2d_or_csr usual for sparse coordinate descent
Conflicts:

	sklearn/utils/validation.py
2012-09-02 23:16:51 +02:00
Alexandre Gramfort b59e1005fc FIX : make as_float_array keep fortran order on dense array when copy 2012-08-21 17:08:47 +02:00
Gael Varoquaux a12bd7bc7c ENH: understandable error message for X sparse 2012-08-10 11:23:00 +01:00
Lars Buitinck 38c3c30207 COSMIT refactor input validation code and tests 2012-07-20 15:18:16 +02:00
Andreas Mueller 1ebcc4a486 COSMIT pep8 2012-05-15 21:18:30 +02:00
Subhodeep Moitra cf46424609 P3K : Convert int type checking to np.integer 2012-05-11 11:21:01 +02:00
Olivier Grisel 106a6bf157 add tests for invalid argument + fixed a type error 2012-02-10 23:12:22 +01:00
Lars Buitinck 263d6c02f7 ENH merge dense/sparse LinearSVC, part 1: no more SparseBaseLibLinear 2012-01-16 17:55:47 +01:00
Andreas Mueller 3a6e490e05 COSMIT pep8 2011-12-23 19:12:52 +01:00
Olivier Grisel 65a47a9741 readd dtype and ccontiguous checks removed by mistake during last conflict resolution 2011-12-21 11:43:02 +01:00
Jake Vanderplas eb248b7bea Move validation utils to their own submodule 2011-12-19 11:15:21 -08:00