public static class SparseConfidenceWeighted.Parameters extends LinearThresholdUnit.Parameters
SparseConfidenceWeighted
's configurable parameters.
Using instances of this class should make code more readable and constructors less
complicated.Modifier and Type | Field and Description |
---|---|
protected double |
confidence
The confidence parameter as described above; default
SparseConfidenceWeighted.defaultConfidence . |
protected double |
initialVariance
The strictly positive initial variance of the parameters; default
SparseConfidenceWeighted.defaultInitialVariance . |
protected SparseWeightVector |
variances
The current variances of the parameters; default
LinearThresholdUnit.defaultWeightVector . |
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(SparseConfidenceWeighted.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. |
protected double confidence
SparseConfidenceWeighted.defaultConfidence
.protected double initialVariance
SparseConfidenceWeighted.defaultInitialVariance
.protected SparseWeightVector variances
LinearThresholdUnit.defaultWeightVector
.public Parameters()
public Parameters(LinearThresholdUnit.Parameters p)
public Parameters(SparseConfidenceWeighted.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.public String nonDefaultString()
nonDefaultString
in class LinearThresholdUnit.Parameters
Copyright © 2016. All rights reserved.