public static class BinaryMIRA.Parameters extends SparsePerceptron.Parameters
BinaryMIRA's configurable parameters. Using instances
of this class should make code more readable and constructors less complicated.| Modifier and Type | Field and Description |
|---|---|
double |
beta
The user supplied learning algorithm parameter; default
BinaryMIRA.defaultBeta. |
initialWeight, learningRate, negativeThickness, positiveThickness, thickness, threshold, weightVectorrounds| Constructor and Description |
|---|
Parameters()
Sets all the default values.
|
Parameters(BinaryMIRA.Parameters p)
Copy constructor.
|
Parameters(SparsePerceptron.Parameters p)
Sets the parameters from the parent's parameters object, giving defaults to all
parameters declared in this object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
nonDefaultString()
Creates a string representation of these parameters in which only those parameters that
differ from their default values are mentioned.
|
void |
setParameters(Learner l)
Calls the appropriate
Learner.setParameters(Parameters) method for this
Parameters object. |
public double beta
BinaryMIRA.defaultBeta. The
learning rate changes as a function of beta.public Parameters()
public Parameters(SparsePerceptron.Parameters p)
public Parameters(BinaryMIRA.Parameters p)
public void setParameters(Learner l)
Learner.setParameters(Parameters) method for this
Parameters object.setParameters in class SparsePerceptron.Parametersl - The learner whose parameters will be set.public String nonDefaultString()
nonDefaultString in class LinearThresholdUnit.ParametersCopyright © 2016. All rights reserved.