Commit Graph

41 Commits

Author SHA1 Message Date
Andreas Mueller e64cea0342 ENH add random seed to logistic regression 2012-10-18 13:48:10 +02:00
Olivier Grisel fa93e209ff FIX: wrong probabilities for OvR LogisticRegression 2012-09-28 19:13:46 +02:00
Lars Buitinck dc943722de COSMIT refactor linear classifiers
Factored out the common code to LinearSVC, LogisticRegression, Perceptron
and SGDClassifier into a LinearClassifierMixin.
2012-09-17 21:06:36 +02:00
Lars Buitinck 8727405d26 DOC + COSMIT LogisticRegression: docstring + rewrite predict_proba 2012-09-13 21:00:12 +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
Francois Savard 7fb4fa359d Fixed docstring for C param in BaseLibLinear/SVM subclasses.
And added deprecation warning.
2012-08-22 16:05:14 -04:00
Andreas Mueller a93945a171 DOC added class_weight to LogisticRegression docstring 2012-08-11 19:11:54 +01:00
Alexandre Gramfort 15455263b7 API : change back default C to 1. explicitely and epsilon 0.1 2012-05-05 21:57:04 +02:00
Andreas Mueller 66d00f4748 MISC trying to remove scale_C 2012-05-05 21:57:04 +02:00
Alexandre Gramfort 1caad7d571 ENH : adding scaled_C_ attribute 2012-03-07 15:34:24 +01:00
Alexandre Gramfort 5507f0895c FIX : remove useless C definition in non-fit methods 2012-03-07 15:34:24 +01:00
Alexandre Gramfort c920fd8186 API: use C=None by default in libsvm/liblinear bindings so (C=1, scale_C=False) which is libsvm default == (C=None, scale_C=True) which is the scikit default 2012-03-07 15:34:24 +01:00
Andreas Mueller 868eac134f Merge branch 'master' into svm_class_weights
Conflicts:
	doc/modules/svm.rst
	doc/tutorial.rst
	doc/whats_new.rst
	sklearn/linear_model/logistic.py
	sklearn/svm/base.py
	sklearn/svm/classes.py
	sklearn/svm/sparse/classes.py
	sklearn/svm/tests/test_sparse.py
	sklearn/svm/tests/test_svm.py
2012-02-15 00:12:02 +01:00
Alexandre Gramfort 7441db89ce update docstring with WARNING 2012-02-11 14:55:20 +01:00
Alexandre Gramfort 366ceb2d84 DOC: update scale_C docstrings + add notes to svm.rst 2012-02-11 14:43:45 +01:00
Alexandre Gramfort ed90bc5cf7 DOC: indent pb 2012-02-11 14:43:45 +01:00
Alexandre Gramfort d41768a95c DOC : add warning in docstrings for scale_C gone in 0.12 2012-02-11 14:43:45 +01:00
Alexandre Gramfort f0dc6116ad API: set scale_C to True by default in libsvm/liblinear models 2012-02-11 14:42:47 +01:00
Andreas Mueller 0e8312312b ENH: moved class_weight parameter in svms from fit to ``__init__``. 2012-02-07 00:24:02 +01:00
Mathieu Blondel 77d83b61f9 Remove CoefSelectTransformerMixin and use SelectorMixin instead.
This fixes issue #518.
2012-01-25 18:04:27 +09:00
Andreas Mueller cb00e97dc2 COSMIT pep8 2012-01-23 10:02:01 +01:00
Lars Buitinck 278fe52ba2 COSMIT refactor liblinear bindings
Move knowledge of the CSR matrix format down the chain.
2012-01-16 23:34:03 +01:00
Lars Buitinck cd131ee9c8 DOC reference for logistic regression training with liblinear 2012-01-16 22:07:07 +01:00
Lars Buitinck 0b0bcfc311 ENH merge dense/sparse LinearSVC, part 4: deprecate sparse.LogisticRegression 2012-01-16 21:34:55 +01:00
Andreas Mueller 35c1222ebf DOCs workaround for docutils bug (column alignment problem) 2012-01-08 21:20:24 +01:00
Olivier Grisel 436fcbe08c document the fact that coef_ is readonly for LogisticRegression and LinearSVC 2012-01-07 18:13:43 +01:00
Andreas Mueller 6c17d0d8af COSMIT make 'References' bold and minor other fixes. 2011-12-22 20:57:54 +01:00
Lars Buitinck ff517ddf32 DOC rm References sections in docstrings
According to @GaelVaroquaux, this breaks the NumPy docstring parser.
Moved references to Notes or See also sections, depending on context.
2011-12-21 18:05:22 +01:00
Olivier Grisel b4838e764b merge master 2011-12-19 16:45:50 +01:00
Olivier Grisel dd6a56c37c cosmit 2011-12-17 15:20:50 +01:00
Alexandre Gramfort cfcf42e742 Merge branch 'master' into n_samples_scaling
Conflicts:
	doc/whats_new.rst
	sklearn/grid_search.py
	sklearn/svm/base.py
	sklearn/svm/classes.py
	sklearn/svm/sparse/classes.py
2011-12-15 15:17:46 +01:00
Andreas Mueller 78fa279dc6 COSMIT more pep8 2011-11-28 23:55:33 +01:00
Fabian Pedregosa a51424b943 Small comment on the dual parameter
Related to 404152d587
2011-11-24 18:03:03 +01:00
Alexandre Gramfort fdbd584a93 s/C_scale_n_samples/scale_C 2011-11-11 21:36:19 -05:00
Alexandre Gramfort 6def64c3e6 ENH : adding support for scaling by n_samples of the C parameter in libsvm and liblinear models 2011-11-11 16:43:03 -05: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
Olivier Grisel 10d78a7677 DOC: LogisticRegression is a wrapper for liblinear. 2011-10-19 15:52:35 +03:00
Lars Buitinck 96746bcd88 DOC explain multiclass behavior in LogisticRegression 2011-10-19 14:41:49 +02: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