|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.classifier.sgd.DefaultGradient
public class DefaultGradient
Implements the basic logistic training law.
Constructor Summary | |
---|---|
DefaultGradient()
|
Method Summary | |
---|---|
Vector |
apply(java.lang.String groupKey,
int actual,
Vector instance,
AbstractVectorClassifier classifier)
Provides a default gradient computation useful for logistic regression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGradient()
Method Detail |
---|
public final Vector apply(java.lang.String groupKey, int actual, Vector instance, AbstractVectorClassifier classifier)
apply
in interface Gradient
groupKey
- A grouping key to allow per-something AUC loss to be used for training.actual
- The target variable value.instance
- The current feature vector to use for gradient computationclassifier
- The classifier that can compute scores
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |