Peter Prettenhofer
68fd7a3646
fix: docstring for power_t in SGDClassifier was not correct (0.25 instead of 0.5)
2013-01-10 17:18:59 +01:00
Andreas Mueller
11cdef7e6d
ENH common test that set_params returns self.
2013-01-09 09:27:53 +01:00
Andreas Mueller
127c44b730
ENH refactoring class weights for SVM and SGD
2013-01-03 13:21:50 +01:00
Andreas Mueller
754c2d9533
COSMIT pep8
2012-12-22 16:48:17 +01:00
Andreas Mueller
92138a4258
COSMIT pep8
2012-11-10 14:02:29 +00:00
Mathieu Blondel
34037306ab
Remove transform from PassiveAggressive*.
...
It really only makes sense if the estimator supports L1-penalty.
2012-11-08 15:21:19 +09:00
Mathieu Blondel
a3670c0fb4
Remove predict_proba from Perceptron and PassiveAggressiveClassifier.
...
Fixes #1336 .
2012-11-07 14:18:34 +09:00
Mathieu Blondel
326426826c
Better documentation for epsilon in SGD.
2012-11-06 16:11:34 +09:00
Mathieu Blondel
e9dde4960b
Fix a few test failures.
2012-11-05 22:19:08 +09:00
Mathieu Blondel
d38c0d2fee
Fix random_state in SGD.
2012-11-05 21:34:46 +09:00
Mathieu Blondel
97f594a935
Add squared epsilon insensitive loss.
2012-11-05 21:15:51 +09:00
Mathieu Blondel
5a313ba622
Add SquaredHingeLoss.
2012-11-05 20:43:41 +09:00
Mathieu Blondel
8b73f406b9
Implement and test PA-II.
2012-11-05 20:13:20 +09:00
Mathieu Blondel
1589d5441c
Do not expose C in SGDClassifier / Regressor.
2012-11-05 19:48:48 +09:00
Mathieu Blondel
25284b9cf1
Merge branch 'sgd_learners' of https://github.com/zaxtax/scikit-learn into passive_aggressive
2012-11-05 16:24:42 +09:00
Rob Zinkov
f67e0d2f1e
Fixed docstrings and seed tests
2012-11-02 09:52:05 -07:00
Lars Buitinck
77b4670b6a
COSMIT use np.clip in SGD
2012-10-29 00:47:00 +01:00
Rob Zinkov
76972db507
Added documentation for new classifier and changed seed to random_state
2012-10-25 06:18:34 -07:00
Rob Zinkov
8f22486d1b
Split out PassiveAggressive Classifier into its own object
2012-10-24 07:55:51 -07:00
Rob Zinkov
dfe33d0c49
PEP8 COSMIT
2012-10-21 14:36:02 -07:00
Rob Zinkov
e9ebfeb8c3
Added documentation and removed PA
2012-10-21 05:31:36 -07:00
Rob Zinkov
ba529573f9
Added documentation to stochastic_gradient
2012-10-21 03:34:32 -07:00
Lars Buitinck
53b220358c
COSMIT correct error msgs in SGD and make them more consistent
2012-10-14 12:09:59 +02:00
Lars Buitinck
97ed66151a
BUG + DOC l1_ratio in SGD and CD
...
SGD{Classifier,Regressor} treated l1_ratio as previously rho. Docstrings
stated that l1_ratio must be >0, which means pure L2 regularization would
not be possible.
2012-10-14 11:43:26 +02:00
Andreas Mueller
72e71bb439
ENH address @agramfort's comments, fix some doctests
2012-10-11 20:56:03 +01:00
Andreas Mueller
b39609af4e
ENH rename rho in SGD
2012-10-11 20:56:03 +01:00
Gael Varoquaux
55ef1d617a
DOC: protect `classes_` for valid rst
2012-10-07 16:39:40 +02:00
Lars Buitinck
77e69edcec
COSMIT rm deprecated stuff -- lots of it
2012-09-20 21:40:33 +02:00
Andreas Mueller
1313f25cda
COSMIT pep8
2012-09-20 14:49:14 +01: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
f15e5803ef
COSMIT rm deprecated SGDClassifier.classes property
2012-09-16 22:18:36 +02:00
Lars Buitinck
69176b11dd
DOC small fixes to SGD docstrings
2012-09-14 15:12:34 +02:00
Peter Prettenhofer
5ecb9ac332
add predict_log_proba and test; better docstrings
2012-09-14 14:44:34 +02:00
Peter Prettenhofer
9feb095149
fix docstring of predict_proba
2012-09-13 12:52:21 +02:00
Peter Prettenhofer
5d357f7df1
followed @larsmans tip to get rid of _decision_function
2012-09-13 08:58:04 +02:00
Peter Prettenhofer
523ba8fc27
cosmit
2012-09-12 18:50:24 +02:00
Peter Prettenhofer
ad9cc064bf
fix the predict_proba w/ sparse matrix regression by using shape instead of len
2012-09-12 18:38:30 +02:00
Peter Prettenhofer
60c730d21e
rename get_loss_function to _get_loss_function
2012-09-07 10:08:37 +02:00
Peter Prettenhofer
6a23fc8165
use DEFAULT_EPSILON consistently
2012-09-06 22:07:26 +02:00
Peter Prettenhofer
63608c67ae
refactored input validation; special loss function factory for huber and epsilon insensitive loss
2012-09-06 21:41:57 +02:00
Peter Prettenhofer
dfd2140d59
move get_loss_function to _partial_fit
2012-09-06 10:04:49 +02:00
Peter Prettenhofer
70099dd40d
rm instance variables learing_rate_type, loss_function, and penalty_type; create them before plain_fit
2012-09-06 09:35:09 +02:00
Marko Burjek
f524edcf89
DOC forgot dot in SGDCLassifier documentation
2012-09-04 07:46:16 +02:00
Marko Burjek
ab7e942233
DOC add support for sparse arrays to SGDCLassifer
2012-09-04 07:46:16 +02:00
Marko Burjek
5236f8c88f
DOC Fixed a return in predict_proba in SGDClassifier
2012-09-04 07:46:16 +02:00
Marko Burjek
bcbcc5cd87
DOC Added SGDCLassifier support only binary prediction probabilites.
2012-09-03 19:25:48 +02:00
Peter Prettenhofer
81bca36f6b
fix typo
2012-09-03 10:33:56 +02:00
Peter Prettenhofer
0441dc58b5
Merge branch 'master' into sgd-yshape-fix
2012-09-03 10:25:39 +02:00
Vlad Niculae
9e7c03f71a
Add or fix deprecation schedule in warnings.
2012-09-01 20:02:14 +02:00
Peter Prettenhofer
d9ff3f5a90
cosmit: constants for penalty types and learning rate types; inline comments;
2012-08-30 09:29:15 +02:00