public static class ORTO.ORTOPerceptron extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected DoubleVector |
attributeStatistics |
protected int |
instancesSeen |
protected boolean |
reset |
protected DoubleVector |
squaredAttributeStatistics |
protected double[] |
weightAttribute |
Constructor and Description |
---|
ORTO.ORTOPerceptron() |
ORTO.ORTOPerceptron(ORTO.ORTOPerceptron copy) |
Modifier and Type | Method and Description |
---|---|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double[] |
getWeights() |
double |
prediction(weka.core.Instance inst)
Output the prediction made by this perceptron on the given instance
|
void |
resetLearningImpl()
A method to reset the model
|
void |
setWeights(double[] w) |
void |
trainOnInstanceImpl(weka.core.Instance inst,
ORTO ft)
Update the model using the provided instance
|
copy, copy, measureByteSize, measureByteSize, toString
protected double[] weightAttribute
protected DoubleVector attributeStatistics
protected DoubleVector squaredAttributeStatistics
protected int instancesSeen
protected boolean reset
public ORTO.ORTOPerceptron(ORTO.ORTOPerceptron copy)
public ORTO.ORTOPerceptron()
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic void setWeights(double[] w)
public double[] getWeights()
public void resetLearningImpl()
public void trainOnInstanceImpl(weka.core.Instance inst, ORTO ft)
public double prediction(weka.core.Instance inst)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.