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_BIAS
updateBias
vectorFactory
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, computeUpdate
computeDecay, computeDecay, computeRescaling, computeRescaling, createInitialLearnedObject, initialize, initialize, isUpdateBias, setUpdateBias, update, update
createKernelLearner, learn, update, update, update
createInitialLearnedObject, getVectorFactory, setVectorFactory, update
update
clone, learn, learn, update
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
update
learn
learn
createInitialLearnedObject, update, update
clone
public 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.