LBJ2.learn
Class LinearThresholdUnit.Parameters

java.lang.Object
  extended by LBJ2.learn.Parameters
      extended by LBJ2.learn.LinearThresholdUnit.Parameters
Direct Known Subclasses:
SparsePerceptron.Parameters, SparseWinnow.Parameters
Enclosing class:
LinearThresholdUnit

public static class LinearThresholdUnit.Parameters
extends Parameters

Simply a container for all of LinearThresholdUnit's configurable parameters. Using instances of this class should make code more readable and constructors less complicated.


Field Summary
 double initialWeight
          The weight associated with a feature when first added to the vector; default LinearThresholdUnit.defaultInitialWeight.
 double negativeThickness
          The thickness of the hyperplane on the negative side; default 0.
 double positiveThickness
          The thickness of the hyperplane on the positive side; default 0.
 double thickness
          This thickness will be added to both positiveThickness and negativeThickness; default LinearThresholdUnit.defaultThickness.
 double threshold
          The score is compared against this value to make predictions; default LinearThresholdUnit.defaultThreshold.
 SparseWeightVector weightVector
          The LTU's weight vector; default is an empty vector.
 
Constructor Summary
LinearThresholdUnit.Parameters()
          Sets all the default values.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weightVector

public SparseWeightVector weightVector
The LTU's weight vector; default is an empty vector.


initialWeight

public double initialWeight
The weight associated with a feature when first added to the vector; default LinearThresholdUnit.defaultInitialWeight.


threshold

public double threshold
The score is compared against this value to make predictions; default LinearThresholdUnit.defaultThreshold.


thickness

public double thickness
This thickness will be added to both positiveThickness and negativeThickness; default LinearThresholdUnit.defaultThickness.


positiveThickness

public double positiveThickness
The thickness of the hyperplane on the positive side; default 0.


negativeThickness

public double negativeThickness
The thickness of the hyperplane on the negative side; default 0.

Constructor Detail

LinearThresholdUnit.Parameters

public LinearThresholdUnit.Parameters()
Sets all the default values.