Modifier and Type | Field and Description |
---|---|
protected int |
instancesSeen |
protected ISOUPTree |
tree |
protected double[][] |
weights |
Constructor and Description |
---|
MultitargetPerceptron(ISOUPTree tree) |
MultitargetPerceptron(ISOUPTree tree,
ISOUPTree.MultitargetPerceptron original) |
Modifier and Type | Method and Description |
---|---|
void |
getModelDescription(StringBuilder out,
int indent) |
String |
getPurposeString() |
void |
initializeWeights() |
void |
normalizeWeights() |
double[] |
prediction(double[] instanceValues)
Output the prediction made by this perceptron on the given instance
|
void |
updatePerceptron(MultiLabelInstance inst)
Update the model using the provided instance
|
void |
updateWeights(MultiLabelInstance inst,
double learningRatio) |
protected ISOUPTree tree
protected double[][] weights
protected int instancesSeen
public MultitargetPerceptron(ISOUPTree tree, ISOUPTree.MultitargetPerceptron original)
public MultitargetPerceptron(ISOUPTree tree)
public String getPurposeString()
public void initializeWeights()
public void updatePerceptron(MultiLabelInstance inst)
public void updateWeights(MultiLabelInstance inst, double learningRatio)
public void normalizeWeights()
public double[] prediction(double[] instanceValues)
public void getModelDescription(StringBuilder out, int indent)
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.