Commit Graph

94 Commits

Author SHA1 Message Date
Gael varoquaux 3ef468a429 Cosmit 2011-04-01 18:24:33 +02:00
Thouis (Ray) Jones cbb0a1b922 balltree - be explicit about return types' width 2011-04-01 17:28:19 +02:00
Thouis (Ray) Jones 5bdc5a47d7 Renamed for backwards compatibility, fixed C++ Exceptions to propagate to python 2011-04-01 17:15:34 +02:00
Thouis (Ray) Jones ee8b41d3b6 Wrapped BallTree in Cython.
Note that this wrapper does not include the BruteForceNeighbors()
function from BallTree.h
2011-04-01 16:34:45 +02:00
Fabian Pedregosa 8b66fced88 FIX: do not resize array in knn_brute.
Similar fix a past commit, now in function BallTree_knn_brute.
2011-02-23 10:53:24 +01:00
Fabian Pedregosa bb1627b767 Do not resize the array on k=1.
It is more consistent if you always return an array [n_samples,
n_neighbors]. It looks strange, but avoids the need to special-case
other algorithms that depend on this.
2011-02-17 10:22:56 +01:00
Alexandre Gramfort dff37525e6 MISC: reindenting BallTree C++ code (no tabs + 4 spaces) 2010-11-28 15:37:40 -05:00
Fabian Pedregosa 72a0c56310 Add support for np.float32 matrices in lars_path.
Some single-precision routines have had to be ported from cblas. Later
on we could probably remove most of them since new scipy has
triangular_solve function and cholesky_delete could be implemented in
Python.
2010-11-23 09:35:38 +01:00
Fabian Pedregosa 4b98c357e7 Fix malformed RST in BallTree.cpp
And fix latex generation error in sphinx.
2010-10-01 15:24:19 +02:00
Fabian Pedregosa 0f37104fe9 Refactoring in the svm module.
Created a svm folder and moved relevant sources there. This should not affect
the API, since we are maintaining an __init__ file which handles the imports.
2010-09-28 12:40:58 +02:00
Fabian Pedregosa 7417610198 Cosmetic changes to the cblas README. 2010-09-28 11:44:02 +02:00
Fabian Pedregosa 4884978c62 Add some developer information for the CBLAS we ship. 2010-09-27 16:31:30 +02:00
Fabian Pedregosa a22d25e9c0 Remove Minilearn C sources. 2010-09-27 16:18:10 +02:00
Fabian Pedregosa cbdbda6981 Add missing cblas_dcopy files. 2010-09-16 16:07:11 +02:00
Fabian Pedregosa 9719271abb Some fixes for the atlas we ship.
Add the correct alias to the function names.
2010-09-16 15:47:13 +02:00
Fabian Pedregosa 8be8a8afce Fixes for ref atlas. 2010-09-16 14:34:49 +02:00
Fabian Pedregosa 5c170584a7 Good bye minilearn.
Update of cblas functions has precipitated this removal, which was
anyway obsolete after inclusion of the python version.
2010-09-16 13:56:00 +02:00
Fabian Pedregosa 5135fca310 Update CBLAS files: add rotg, rot, trsv, remove tpsv. 2010-09-16 13:55:41 +02:00
VirgileFritsch 4287862761 Rename PyBallTree* --> BallTree* in BallTree.cpp.
According to ticket #24 description, "user code should never define
 names that begin with Py ...".
2010-09-14 11:18:01 +02:00
Gael varoquaux 9fa65211fb DOC: prettify the nearest neighbors docs 2010-09-11 12:05:26 +02:00
Alexandre Gramfort 667e5089ee ENH : continue refactoring of GLM module (doc, moving files, config etc.) 2010-08-31 19:14:28 +02:00
Fabian Pedregosa 258b351abe FIX: fix shape of support vectors in liblinear sparse.
Still TODO: write some doc on why the shape of coefs in liblinear
and libsvm differ in the multiclass case.
2010-08-19 19:27:52 +02:00
Fabian Pedregosa 582c812e78 FIX: fix liblinear predict in the multiclass case.
Hopefully this fixes the bug. Also added some tests.
2010-08-19 13:09:08 +02:00
Fabian Pedregosa 4e79a78ad1 Refactoring & bug solving in liblinear.
Solved a bug that prevented to correctly use the intercept in
predict.

Muticlass prediction is still broken, thou.
2010-08-19 11:47:46 +02:00
Fabian Pedregosa 49ba346233 Bug fixing in liblinear bindings.
It gave wrong answers in the multiclass case. It still gives bad
answer, but at least dimension of coef_ is now right.
2010-08-18 21:27:12 +02:00
Fabian Pedregosa 1e1452d409 Bug fixing in liblinear bindings.
Re-enabled skipped test.
2010-08-18 21:27:12 +02:00
Fabian Pedregosa 63ec11ea6f move liblinear into its own folder 2010-08-18 21:27:12 +02:00
Fabian Pedregosa efc32a51ed More refactoring in libsvm + liblinear.
Added a (skipped) failing test.
2010-08-18 21:27:12 +02:00
Fabian Pedregosa de451f7f44 Refinement and bugfixing in the liblinear bindings.
Bug fixing + removing unused code, also added some tests.
2010-08-18 21:27:11 +02:00
Fabian Pedregosa 48be43b92c Add support for sparse matrices in liblinear bindings.
sparse.LinearSVC should be usable. Tested in
examples/mlcomp_sparse_document_classification and gives a 15x speedup
compared to the LibSVM implementation.

still TODO: add some tests and examples.
2010-08-17 14:18:05 +02:00
Olivier Grisel 13b319cdb0 avoid useless allocations in dense_to_sparse conversion 2010-08-03 01:55:09 +02:00
Fabian Pedregosa 811563a663 FIX: more bugfixing in sparse.svm. 2010-07-27 19:41:45 +02:00
Fabian Pedregosa dd92df672e FIX: bug fixing on sparse.svm.
Also added some tests. Basics seems to be working, it shouldn't
take long to start doing some serious work with this.
2010-07-27 14:44:37 +02:00
Fabian Pedregosa 2fd21d576b Initial support for sparse matrices in SVMs (scikits.learn.sparse.svm) 2010-07-26 22:18:13 +02:00
Fabian Pedregosa 31b36e84b3 FIX: compatibility fixes for py3k.
Sources are now python3-compatible. You stil have to run the 2to3 tool
to generate the sources, though.
2010-07-26 22:10:58 +02:00
Fabian Pedregosa fb91d9a581 Test for libsvm margin. 2010-07-20 20:55:25 +02:00
Fabian Pedregosa 4f31787920 Refactoring of LibSVM bindings.
Just remove unnecessary code, and put all libsvm related code into a
single folder.
2010-07-20 20:55:13 +02:00
Olivier Grisel 9c20589ba2 blas-ification of elastic net + ensure that the gap is initialized and evaluated 2010-07-19 22:32:05 +02:00
Alexandre Gramfort 241e080ed7 ENH : glm coordinate descent with BLAS 2010-07-19 10:21:28 +02:00
Olivier Grisel 611554c4cb ENH: more efficient stopping criterion coordinate descent GLM and comparison with python-glmnet 2010-07-18 16:29:20 +02:00
Alexandre Gramfort e788f1100a setting array as fortran in lasso + enet coordinate descent 2010-07-16 13:49:13 +02:00
Fabian Pedregosa c3b3ea9947 Add support in LAR for unnormalized columns.
In the future, a flag should be added to avoid unnecessary
multiplications.
2010-06-28 09:39:05 -05:00
Fabian Pedregosa 0ff244c127 Small modification in the LARS algorithm.
Added documentation & tests.
2010-06-23 15:39:55 +02:00
Fabian Pedregosa 2740b6d85e Rename minilearn -> _minilearn 2010-06-23 14:58:43 +02:00
Fabian Pedregosa 03ea91ad8e Rename C extension liblinear -> _liblinear 2010-06-23 14:58:43 +02:00
Fabian Pedregosa 3382ec2ac4 Rename module BallTree -> ball_tree
PEP8 is beautiful.
2010-06-22 08:59:33 +02:00
Fabian Pedregosa 47ef1690c9 Rename libsvm --> _libsvm 2010-06-21 16:00:39 +02:00
Fabian Pedregosa 9c0408ac95 LeastAngleRegression fixes & refactoring.
Work in progress.
2010-06-18 11:56:02 +02:00
Fabian Pedregosa 8aea2206ae Fixes for lars.c to compile under Visual Studio. 2010-06-17 07:23:35 -07:00
Fabian Pedregosa e95bc43c70 Add the diabetes dataset and modify the LAR example. 2010-06-16 15:58:52 +02:00