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
Andreas Mueller
5a1fde1194
COSMIT fixing some unused imports, adding stuff to __all__, and light pep8 (not all whitespace to make rebasing less painful)
2013-07-27 15:44:17 +02:00
Nicolas Trésegnie
c91504a7fe
Add test of the as_float_array behaviour when copy=True
2013-07-23 14:46:14 +02:00
Lars Buitinck
3840fecd7a
ENH order *does* matter for sparse matrices
2013-07-11 11:50:23 +02:00
Andreas Mueller
03048ddb5f
ENH more logical behavior, better docstring, tests
2013-01-05 19:59:46 +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
Lars Buitinck
38c3c30207
COSMIT refactor input validation code and tests
2012-07-20 15:18:16 +02:00
Alexandre Gramfort
ad8e4912cb
TST: use assert_true instead of assert + remove some relative imports
2012-02-11 15:43:03 +01:00
Olivier Grisel
106a6bf157
add tests for invalid argument + fixed a type error
2012-02-10 23:12:22 +01:00
Andreas Mueller
07b3690044
FIX: missing import
2011-12-20 23:53:21 +01:00
Lars Buitinck
2998a7cc04
COSMIT reorganise utils tests
2011-12-20 19:44:42 +01:00