public static class PassiveAggressive.Parameters extends LinearThresholdUnit.Parameters
PassiveAggressive
's configurable parameters. Using
instances of this class should make code more readable and constructors less complicated.initialWeight, learningRate, negativeThickness, positiveThickness, thickness, threshold, weightVector
rounds
Constructor and Description |
---|
Parameters()
Sets all the default values.
|
Parameters(LinearThresholdUnit.Parameters p)
Sets the parameters from the parent's parameters object, giving defaults to all
parameters declared in this object.
|
Parameters(PassiveAggressive.Parameters p)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setParameters(Learner l)
Calls the appropriate
Learner.setParameters(Parameters) method for this
Parameters object. |
nonDefaultString
public Parameters()
public Parameters(LinearThresholdUnit.Parameters p)
public Parameters(PassiveAggressive.Parameters p)
public void setParameters(Learner l)
Learner.setParameters(Parameters)
method for this
Parameters
object.setParameters
in class LinearThresholdUnit.Parameters
l
- The learner whose parameters will be set.Copyright © 2016. All rights reserved.