| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
LogisticRegressionClassifier
A logistic regression classifier trained using CG. Supports prior mean on 'w'.
>>> lr = LogisticRegressionClassifier() >>> lr.maxiter = 100 >>> lr.epsilon = 1e-8 >>> lr.c = 1.0 # How much more to weigh the +ve examples than -ve examples. >>> lr.train(ds) # see help for train() >>> s = lr.score(av)
|
|||
|
|||
| a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
| LAMBDA | |||
| b | |||
| c | |||
| epsilon | |||
| maxiter | |||
| mu | |||
| w | |||
|
Inherited from |
|||
|
|||
Initialize the LR classifier.
mu can be a double value, or a list of values (at least as many as #features+1)
lambda is a double value that controls the strength of the prior.
|
|
repr(x)
|
Train the model.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 12 11:00:25 2010 | http://epydoc.sourceforge.net |