Package moa.classifiers.trees
Class FIMTDD.FIMTDDPerceptron
- java.lang.Object
-
- moa.classifiers.trees.FIMTDD.FIMTDDPerceptron
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FIMTDD
public class FIMTDD.FIMTDDPerceptron extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
instancesSeen
protected boolean
reset
protected double
sumOfSquares
protected double
sumOfValues
protected FIMTDD
tree
protected DoubleVector
weightAttribute
-
Constructor Summary
Constructors Constructor Description FIMTDDPerceptron(FIMTDD tree)
FIMTDDPerceptron(FIMTDD.FIMTDDPerceptron original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getModelDescription(StringBuilder out, int indent)
String
getPurposeString()
DoubleVector
getWeights()
DoubleVector
normalizedInstance(Instance inst)
protected double
prediction(Instance inst)
double
prediction(DoubleVector instanceValues)
Output the prediction made by this perceptron on the given instancevoid
updatePerceptron(Instance inst)
Update the model using the provided instancevoid
updateWeights(Instance inst, double learningRatio)
-
-
-
Field Detail
-
tree
protected FIMTDD tree
-
weightAttribute
protected DoubleVector weightAttribute
-
sumOfValues
protected double sumOfValues
-
sumOfSquares
protected double sumOfSquares
-
instancesSeen
protected double instancesSeen
-
reset
protected boolean reset
-
-
Constructor Detail
-
FIMTDDPerceptron
public FIMTDDPerceptron(FIMTDD.FIMTDDPerceptron original)
-
FIMTDDPerceptron
public FIMTDDPerceptron(FIMTDD tree)
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
-
getWeights
public DoubleVector getWeights()
-
updatePerceptron
public void updatePerceptron(Instance inst)
Update the model using the provided instance
-
updateWeights
public void updateWeights(Instance inst, double learningRatio)
-
normalizedInstance
public DoubleVector normalizedInstance(Instance inst)
-
prediction
public double prediction(DoubleVector instanceValues)
Output the prediction made by this perceptron on the given instance
-
prediction
protected double prediction(Instance inst)
-
getModelDescription
public void getModelDescription(StringBuilder out, int indent)
-
-