public interface Prediction
Modifier and Type | Method and Description |
---|---|
double |
getVote(int outputAttributeIndex,
int classIndex)
The vote assigned to a class of an output attribute
|
double[] |
getVotes()
The votes for the first output attribute
|
double[] |
getVotes(int outputAttributeIndex)
The votes for a given output attribute
|
boolean |
hasVotesForAttribute(int outputAttributeIndex)
Checks if there are votes for a given output attribute
|
int |
numClasses(int outputAttributeIndex)
Different output attributes may have different number of classes.
|
int |
numOutputAttributes()
Number of output attributes.
|
void |
setVote(int outputAttributeIndex,
int classIndex,
double vote)
Sets the vote for class of a given output attribute
|
void |
setVotes(double[] votes)
Sets the votes for the first output attribute
|
void |
setVotes(int outputAttributeIndex,
double[] votes)
Sets the votes for a given output attribute
|
int |
size()
The size of the prediction, that is the number of output attributes
|
String |
toString()
The text of the prediction, that is the description of the values of the prediction
|
int numOutputAttributes()
int numClasses(int outputAttributeIndex)
double[] getVotes(int outputAttributeIndex)
double getVote(int outputAttributeIndex, int classIndex)
void setVotes(int outputAttributeIndex, double[] votes)
void setVotes(double[] votes)
void setVote(int outputAttributeIndex, int classIndex, double vote)
double[] getVotes()
boolean hasVotesForAttribute(int outputAttributeIndex)
int size()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.