Commit Graph

28 Commits

Author SHA1 Message Date
Lars Buitinck 37c1d092f8 COSMIT shut up the build by calling np.import_array in Cython modules
$(make in 2>&1 | wc -l) down from 706 to 517.

Took the liberty of modernizing some of the Cython code while I was at it.
2013-01-10 18:00:21 +01:00
Vlad Niculae 5f8a9b0b34 FIX: makes our libsvm port compile under MSVC
Apparently, both clang and gcc support `and` instead of `&&` and
`or` instead of `&&`, but MSVC does not and raises a syntax error.
2013-01-06 15:30:05 +00:00
Andreas Mueller ca9dcfd053 DOC add comment in liblinear 2013-01-03 13:29:46 +01:00
Andreas Mueller 0fbf223d7e FIX liblinear class weight in binary case, robust testing. 2013-01-03 13:29:46 +01:00
Lars Buitinck 207793f02d COSMIT rm outdated file of changes to liblinear 2012-11-10 11:16:39 +01:00
Lars Buitinck 8b6f28061d ENH allow more than 1000 linear SVMs with custom random seeds
Random seed now picked in the range [0..UINT_MAX] instead of [0..1000].

Also changed the liblinear helper code to conform to C89 again, allowing
compilation with MSVC.
2012-10-27 22:55:53 +02:00
Andreas Mueller 00be697425 FIX seed liblinear using srand. Fixes issue #919. 2012-10-16 21:13:38 +01:00
James Bergstra 5d6540d054 ENH: renaming iter_limit -> max_iter 2012-10-16 16:13:00 +02:00
James Bergstra 812376955a ENH: adding iter_limit to libsvm
This commit adds support for a new libsvm parameter, which permits setting a
hard limit on the while loop in the svm.cpp file, in the Solver::Solve
function. Without this functionality, it has been observed that libsvm hangs
without converging in a reasonable time -- it can take days instead of
seconds, and perhaps it is in fact an infinite loop, I don't know.  This
commit allows the user to set a hard limit on the number of libsvm iterations,
and modifies the libsvm bindings to raise a new exception of SolverTimeout
when this limit is reached.
2012-10-16 16:13:00 +02:00
Lars Buitinck 3ed794e283 COSMIT comment out more unneeded liblinear code 2012-09-13 14:58:11 +02:00
Lars Buitinck 6fd64d48d0 COSMIT liblinear C code cleanup
Restore code to be slightly closer to upstream (still not possible to
run with the original library, though).

Comment out some more code that we don't use to reduce build time.
2012-09-13 00:32:46 +02:00
Lars Buitinck 706319655a ENH refactor liblinear prediction code and add classes_ member
Liblinear bindings removed from LinearSVC and LogisticRegression
prediction code in favor of NumPy code.

* no more copying of X at predict time
* no more unchecked malloc at predict time
* -4000 lines of C code
* simpler handling of coef_ and intercept_

Also, support symbolic class names and classes_ on both estimators.
2012-09-13 00:16:42 +02:00
Lars Buitinck 420a006361 COSMIT const and void* correctness in liblinear wrapper
Suppresses a few warnings during build.
2012-09-12 16:00:55 +02:00
Andreas Mueller 408d3ef86d COSMIT, removed scikits.learn things, removed orphan file. 2012-07-23 22:50:12 +01:00
Lars Buitinck efb80b218e BUG set new p parameter in liblinear helper
Set to LibLinear cmdline program's default for now; only used by SVR.
2012-05-25 16:38:35 +02:00
Lars Buitinck 209c046af6 COSMIT make a liblinear C private helper function static 2012-05-25 14:56:28 +02:00
Lars Buitinck ea2bacd91c ENH import liblinear 1.91
* Reapplied the sklearn-specific changes
* Put a slightly larger part of the upstream code in #if 0
2012-05-25 14:42:48 +02:00
Nicolas Pinto 4cdf513fff BUG: fix LibLinear verbosity for L2R_L2_SVC 2012-04-12 21:00:00 -04:00
Nicolas Pinto e003185fa9 ENH: add verbose option to LinearSVC 2012-04-12 16:27:02 -04:00
Gilles Louppe a7b66baf22 FIX: return; instead of return NULL; 2012-03-23 14:56:36 +01:00
Lars Buitinck 570b4a312a COSMIT disable liblinear I/O code
Reduces the number of compiler warnings, trims down .so,
reduces potential linker clashes.
2012-03-13 23:00:11 +01:00
Andreas Mueller bd4fabc2c7 DOC @ogrisel's suggestion: putting a link to pull request in liblinear.cpp 2012-01-28 14:38:29 +01:00
Andreas Mueller 90369a8fd7 DOC comment in linear.cpp 2012-01-28 14:38:18 +01:00
Andreas Mueller 5427f81c66 ENH liblinear: get rid of n_class sign by switching class signs in liblinar implementation. 2012-01-09 23:23:22 +01:00
Brian Holt dd9de04d19 release sv_coef memory 2011-10-04 14:22:04 +01:00
Fabian Pedregosa ddf4b72109 Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
Fabian Pedregosa 68f27e3790 Revert "Move project directory from scikits.learn to sklearn"
This reverts commit fd0d3b879d.
2011-09-02 12:03:18 +02:00
Fabian Pedregosa fd0d3b879d Move project directory from scikits.learn to sklearn 2011-09-02 11:38:24 +02:00