public abstract static class OnlinePassiveAggressivePerceptron.AbstractSoftMargin extends OnlinePassiveAggressivePerceptron
OnlinePassiveAggressivePerceptron.AbstractSoftMargin, OnlinePassiveAggressivePerceptron.LinearSoftMargin, OnlinePassiveAggressivePerceptron.QuadraticSoftMargin| Modifier and Type | Field and Description |
|---|---|
protected double |
aggressiveness
The aggressiveness parameter (C), which is the trade-off between
aggressive updating to meet an incorrect example and keeping
history around.
|
static double |
DEFAULT_AGGRESSIVENESS
The default aggressiveness is 0.001.
|
DEFAULT_UPDATE_BIASupdateBiasvectorFactory| Constructor and Description |
|---|
AbstractSoftMargin()
Creates a new
AbstractSoftMargin with default parameters. |
AbstractSoftMargin(double aggressiveness)
Creates a new
AbstractSoftMargin with the given
aggressiveness. |
AbstractSoftMargin(double aggressiveness,
VectorFactory<?> vectorFactory)
Creates a new
AbstractSoftMargin with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
double |
getAggressiveness()
Gets the aggressiveness parameter (C), which is the trade-off between
aggressive updating to meet an incorrect example and keeping
history around.
|
void |
setAggressiveness(double aggressiveness)
Sets the aggressiveness parameter (C), which is the trade-off between
aggressive updating to meet an incorrect example and keeping
history around.
|
computeUpdate, computeUpdate, computeUpdatecomputeDecay, computeDecay, computeRescaling, computeRescaling, createInitialLearnedObject, initialize, initialize, isUpdateBias, setUpdateBias, update, updatecreateKernelLearner, learn, update, update, updatecreateInitialLearnedObject, getVectorFactory, setVectorFactory, updateupdateclone, learn, learn, updateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdatelearnlearncreateInitialLearnedObject, update, updateclonepublic static final double DEFAULT_AGGRESSIVENESS
protected double aggressiveness
public AbstractSoftMargin()
AbstractSoftMargin with default parameters.public AbstractSoftMargin(double aggressiveness)
AbstractSoftMargin with the given
aggressiveness.aggressiveness - The aggressiveness. Must be positive.public AbstractSoftMargin(double aggressiveness,
VectorFactory<?> vectorFactory)
AbstractSoftMargin with the given parameters.aggressiveness - The aggressiveness. Must be positive.vectorFactory - The factory to use to create new weight vectors.public double getAggressiveness()
public void setAggressiveness(double aggressiveness)
aggressiveness - The aggressiveness. Must be positive.