public static class SparseAveragedPerceptron.Parameters extends SparsePerceptron.Parameters
SparseAveragedPerceptron's configurable parameters.
Using instances of this class should make code more readable and constructors less
complicated. Note that if the object referenced by
LinearThresholdUnit.Parameters.weightVector is replaced via an instance of this
class, it must be replaced with an SparseAveragedPerceptron.AveragedWeightVector.initialWeight, learningRate, negativeThickness, positiveThickness, thickness, threshold, weightVectorrounds| Constructor and Description |
|---|
Parameters()
Sets all the default values.
|
Parameters(SparseAveragedPerceptron.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 |
|---|---|
void |
setParameters(Learner l)
Calls the appropriate
Learner.setParameters(Parameters) method for this
Parameters object. |
nonDefaultStringpublic Parameters()
public Parameters(SparsePerceptron.Parameters p)
public Parameters(SparseAveragedPerceptron.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.Copyright © 2016. All rights reserved.