Commit Graph

74 Commits

Author SHA1 Message Date
Alexandre Gramfort 16a2f6d801 misc 2011-12-21 01:53:13 +01:00
Gael varoquaux 627bdabeeb COSMIT: utils.fixes: document versions 2011-12-21 01:21:12 +01:00
Andreas Mueller 07b3690044 FIX: missing import 2011-12-20 23:53:21 +01:00
Lars Buitinck ff4ca1c469 TST add test for sklearn.utils.extmath.logsum 2011-12-20 19:58:52 +01:00
Lars Buitinck 2998a7cc04 COSMIT reorganise utils tests 2011-12-20 19:44:42 +01:00
Mathieu Blondel c696ad4026 Use int for indptr and indices. 2011-12-20 10:21:30 +01:00
Mathieu Blondel e57aa2af6f tmp -> diff 2011-12-19 17:22:40 +01:00
Mathieu Blondel ac1c9aaddb Test edge case. 2011-12-19 17:20:26 +01:00
Mathieu Blondel 0d927f00ea Cosmit. 2011-12-19 17:18:19 +01:00
Mathieu Blondel 8311b1bbd8 Fix bug with sparse matrices. 2011-12-19 16:28:53 +01:00
Mathieu Blondel 64adbcaddd Implement mean_variance_axis0. 2011-12-19 16:28:21 +01:00
Gael varoquaux 515a8e30c7 BUG: API change in fast_svd
Shame on me.
2011-12-19 10:09:25 +01:00
Gael Varoquaux 76ce92439b Merge pull request #475 from amueller/datasets_doctests
Fixed some doctests on datasets
2011-12-18 23:51:02 -08:00
Gael varoquaux 9c4325be1a Cosmit on randomized range finder
Variable names should be explicit

Documentation must be structure according to guidelines, and giving URLs
to references.
2011-12-19 08:45:53 +01:00
Kenneth C. Arnold 901e124cda fast_svd: factor out the randomized range finder (more generally useful) 2011-12-19 08:28:52 +01:00
Kenneth C. Arnold 1db82e3a1a Cosmit 2011-12-19 08:27:46 +01:00
Andreas Mueller 8ec25b86e1 FIX This should fix the doctests in the datasets dir. They take quite long, I think it's because of the svmlight loaders. So I didn't include them in the standard make target 2011-12-18 19:35:22 +01:00
Andreas Mueller 81cc31229e COSMIT removed unused import math in utils/extmath.py 2011-12-17 00:10:45 +01:00
Andreas Mueller f29a652271 COSMIT pep8 in backported sparsetools... 2011-12-15 17:40:18 +01:00
Andreas Mueller d0854d5a07 COSMIT pep8 2011-12-15 17:08:30 +01:00
Nicolas Pinto a66c0e9e1e Add arXiv link to Halko et al. 2009 paper. 2011-12-14 17:17:41 -05:00
Lars Buitinck 1de57fa4e9 COSMIT use Python 2.6 except-as syntax 2011-12-12 20:42:56 +01:00
Lars Buitinck 8e802fe691 rm Py2.5 compat factorial and combinations from utils.extmath 2011-12-12 17:09:33 +01:00
Lars Buitinck 4c8b15eb3e don't use assert_in, not supported by nose on buildbot 2011-12-11 01:14:32 +01:00
Lars Buitinck 05006c0adf COSMIT use utils.deprecated as a class decorator 2011-12-11 00:55:39 +01:00
Lars Buitinck b88191b786 test @deprecated using warnings.catch_warnings
Yet another great Python 2.6 feature! :)
2011-12-11 00:55:29 +01:00
Lars Buitinck 98ead8a340 raise TypeError instead of ValueError in check_arrays
Appropriate "when an operation or function is applied to an object of
inappropriate type".
2011-12-10 13:12:50 +01:00
Lars Buitinck 75ceb43c48 COSMIT rm some SciPy pre-0.7 compat code 2011-12-10 12:25:29 +01:00
Olivier Grisel f34db3dac7 PEP257 cosmit 2011-12-10 11:11:10 +01:00
Lars Buitinck 106648f281 drop Python 2.5; document and rm some workarounds for kwargs quirks
There might be more of these

    kwargs = FOO
    fun(*args, **kwargs)

workarounds.
2011-12-10 10:22:15 +01:00
Lars Buitinck 06de43601e drop Python 2.5; no more need for utils.fixes.product
+vanity: slap my name on fixes for Counter :)
2011-12-10 10:20:13 +01:00
Lars Buitinck 1a0f5751c2 drop Python 2.5; no more with statements from the __future__ 2011-12-10 10:20:13 +01:00
Gilles Louppe b25c574b76 DOC: Standardized the module documentation format (2) 2011-11-30 11:05:10 +01:00
Andreas Mueller 741dfd37aa some pyflakes 2011-11-28 23:39:55 +01:00
Andreas Mueller 1955ffdba4 COSMIT some pep8 2011-11-28 23:39:46 +01:00
Andreas Mueller 911eb2b6b6 COSMIT reindented for pep8 2011-11-20 21:18:41 +01:00
Andreas Mueller 88dc827996 COSMIT ugly line break for pep8 2011-11-20 21:18:10 +01:00
Andreas Mueller 65244967fd COSMIT indentation 2011-11-20 21:18:00 +01:00
Andreas Mueller ff3f814a1b COSMIT pep8 whitespace 2011-11-20 21:16:52 +01:00
Lars Buitinck 48fda638a5 ENH incrementally build arrays in SVMlight loader to reduce memory usage
Memory use on covtype.binary [1] reduced by nearly 2/3, at the expense of
of a 40% slowdown.

[1] http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#covtype.binary
2011-11-17 19:43:00 +01:00
Gael varoquaux 779bc9a465 ENH: don't echo convergence warning on CV grid
Because the CV grid explores part of the system where it is
ill-conditionned, some grid points will have some convergence
difficulties. There is no point echoing a warning here.
2011-11-10 23:43:10 +01:00
Fabian Pedregosa 021ae0efcb FIX: array2d was did not return contiguous arrays with order='C' ...
for 1d arrays because of the atleast_2d conversion.
2011-11-07 15:05:37 +01:00
Lars Buitinck 3fa52bfbb1 FIX Python 2.5 compat in utils/tests 2011-10-27 18:51:08 +02:00
Lars Buitinck 1f2549d11d ENH test input validation code on memmap arrays 2011-10-25 15:59:47 +02:00
Lars Buitinck 71d524396c FIX replace np.atleast_2d with new utils.array2d
atleast_2d will pass through np.matrix
2011-10-25 15:16:31 +02:00
Lars Buitinck 51d4310c6f COSMIT rename safe_asanyarray to safe_asarray to prevent confusion 2011-10-21 13:58:08 +02:00
Lars Buitinck 3bde2bf97b ENH accept matrix input throughout
Simple solution: replace np.asanyarray with np.asarray throughout.
Also, use utils.as_float_array where appropriate.
2011-10-21 13:51:12 +02:00
Jake Vanderplas 3d93ce82cf simplify warning test; remove assert_warns from utils 2011-10-09 21:57:21 +02:00
Jake Vanderplas 1ccb8ebea7 fixes for tests 2011-10-09 21:57:21 +02:00
Jake Vanderplas bc563c22d6 add warning messages to KNeighbors 2011-10-09 21:57:21 +02:00