Commit Graph

23 Commits

Author SHA1 Message Date
Fabian Pedregosa 138e688ea6 Refactoring in svm module.
Renaming and module denesting. This is just a refactoring of low-level
routines to ease usage of the low-level API. Higher level API was not
changed.
2011-03-30 16:06:49 +02:00
Peter Prettenhofer 3db9bbef5c pep8 + oliviers remarks 2011-03-21 09:25:42 +01:00
Peter Prettenhofer bc16f01e24 Additional tests for sample weights.
Fixed some typos in doc strings.
Changed signature of coef_ for SGDClassifier; now adheres to svm convention that coef_ is shape [1, n_features] in the case of binary classification.
2011-03-15 20:50:44 +01:00
Peter Prettenhofer 618a1b52e7 refactored SGD module (removed code duplication, better variable naming).
added interface for sample weight.
added seed to interface of sparse SGD classifier and regressor.
2011-03-15 16:29:49 +01:00
GaelVaroquaux 40f7ba34bd ENH: Fixed seed for shuffling in SGD
Non reproducible random shuffling introduces too much noise in
cross-validation that makes parameter tuning hard.
2011-03-02 15:40:31 +01:00
Gael varoquaux 09940a99a6 API: SVMs: eps -> tol
Change the eps argument to 'tol' and expose it in base classes.

The reasonning behind calling this argument tol rather than eps is that
it is a bound on the tolerance of the optimization, and it does not
relate to the machine precision (eps).
2011-03-01 17:51:50 +01:00
Mathieu Blondel f79b27d9f4 Rename SparseTransformerMixin to CoefSelectTransformerMixin. 2011-02-15 17:33:34 +09:00
Mathieu Blondel 1fa7336b7c Use sparse.base.SparseTransformerMixin. 2011-02-14 16:45:49 +09:00
Mathieu Blondel 384824906a Add SparseTransformerMixin. 2011-02-14 16:22:41 +09:00
Fabian Pedregosa 19bca16d5a FIX tests when run with scikits.learn.test()
scikits.learn.test() is increadibly picky with lambda functions or
staticmethods.
2010-12-17 15:32:38 +01:00
Paolo Losi a7047ca22b liblinear bias/intercept handling 2010-12-16 12:36:15 +01:00
Fabian Pedregosa 7d16891664 Add notes on fluctiations of liblinear. 2010-12-14 19:33:35 +01:00
Alexandre Gramfort 89377b979a API : maxit replaced by max_iter everywhere
API : removing default computation of r2 coef in coordinate_descent (speed up +
    can be accessed simply eg. lasso.score(X, y))
2010-12-11 23:14:55 -05:00
Olivier Grisel 264629b978 do not precompute explained_variance_ in linear model: can be too costly: use r2_score when needed instead 2010-12-12 02:56:15 +01:00
Fabian Pedregosa 758e5c560c Remove redundant site.cfg parsing. 2010-12-07 15:27:31 +01:00
Peter Prettenhofer 7fceccb5fe Merge branch 'sgd-rename' 2010-12-03 11:28:32 +01:00
Peter Prettenhofer a99078063a BUGFIX in sparse.SGDRegressor
added more tests for SGDRegression
2010-12-03 11:25:43 +01:00
Alexandre Gramfort fdc0aa01ed Merge branch 'log_proba'
closing	     pull request :
https://github.com/scikit-learn/scikit-learn/pull/17
following ticket :
http://sourceforge.net/apps/trac/scikit-learn/ticket/157

Conflicts:
	scikits/learn/svm/base.py
	scikits/learn/svm/libsvm.py
2010-12-02 14:45:52 -05:00
Peter Prettenhofer 2aa32c1af8 Merge branch 'master' into sgd-rename 2010-12-01 17:05:05 +01:00
Fabian Pedregosa fea5d1835f Some love for scikits.learn.svm.
* Lazily import scipy.sparse when possible: this way we can add
    svm.sparse to svm.__init__ without loss of performance.

  * Improved docstrings for dense and sparse versions.
2010-12-01 12:25:06 +01:00
Fabian Pedregosa 560c6c7c17 More rename in the sgd module.
Merge stochastic_descent into linear_model.
2010-12-01 11:38:28 +01:00
Fabian Pedregosa ecce971725 Initial support for weighted samples in svm module.
Also added test for the dense and sparse case.
2010-11-26 13:44:24 +01:00
Fabian Pedregosa 68bc58d029 glm --> linear_model rename holocaust.
I also moved cd_fast.pyx from its src subdirectory to linear_models,
to match the sgd module structure.
2010-11-25 16:27:30 +01:00