|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclassification.Prediction
public class Prediction
This class represents a prediction about some attribute of an instance from a data set.
| Field Summary | |
|---|---|
static double |
AVERAGE_CONFIDENCE
Used to indicate that a prediction should be considered to have confidence equal to the average confidence of any group of predictions it is in. |
| Constructor Summary | |
|---|---|
Prediction(int instance,
java.lang.String attribute,
java.lang.String value,
double confidence)
Creates a new prediction with the given values. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute()
The data attribute the prediction is for. |
double |
getConfidence()
The confidence of the prediction. |
int |
getInstance()
The number of the data instance the prediction is for |
static double |
getMeanConfidence(java.util.Collection<Prediction> predictions)
Determines the average confidence in a collection of predictions, and sets all list members with AVERAGE_CONFIDENCE to have that confidence. |
java.lang.String |
getValue()
The value of the prediction. |
void |
setConfidence(double confidence)
Sets the confidence of the prediction. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double AVERAGE_CONFIDENCE
| Constructor Detail |
|---|
public Prediction(int instance,
java.lang.String attribute,
java.lang.String value,
double confidence)
instance - The instance number of the predictionattribute - The data attribute the prediction is forvalue - The value of the predictionconfidence - The confidence of the prediction.| Method Detail |
|---|
public static double getMeanConfidence(java.util.Collection<Prediction> predictions)
predictions - The list of predictions to find/set an average confidence for
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAttribute()
public int getInstance()
public java.lang.String getValue()
public double getConfidence()
public void setConfidence(double confidence)
confidence - The desired confidence for the prediction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||