public static class StochasticGradientDescent.Parameters extends Learner.Parameters
StochasticGradientDescent's configurable parameters.
Using instances of this class should make code more readable and constructors less
complicated.| Modifier and Type | Field and Description |
|---|---|
double |
learningRate
The rate at which weights are updated; default
StochasticGradientDescent.defaultLearningRate. |
SparseWeightVector |
weightVector
The hypothesis vector; default
StochasticGradientDescent.defaultWeightVector. |
rounds| Constructor and Description |
|---|
Parameters()
Sets all the default values.
|
Parameters(Learner.Parameters p)
Sets the parameters from the parent's parameters object, giving defaults to all
parameters declared in this object.
|
Parameters(StochasticGradientDescent.Parameters p)
Copy constructor.
|
| 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 SparseWeightVector weightVector
StochasticGradientDescent.defaultWeightVector.public double learningRate
StochasticGradientDescent.defaultLearningRate.public Parameters()
public Parameters(Learner.Parameters p)
public Parameters(StochasticGradientDescent.Parameters p)
public void setParameters(Learner l)
Learner.setParameters(Parameters) method for this
Parameters object.setParameters in class Learner.Parametersl - The learner whose parameters will be set.public String nonDefaultString()
nonDefaultString in class Learner.ParametersCopyright © 2016. All rights reserved.