public class Prediction
extends java.lang.Object
Constructor and Description |
---|
Prediction(int classID,
java.lang.String className,
double classProbability)
Create a new prediction class.
|
Prediction(PredictionClass predictionClass,
double classProbability)
Create a new prediction from the given class and probability.
|
Modifier and Type | Method and Description |
---|---|
int |
getClassID() |
java.lang.String |
getClassName() |
double |
getClassProbability() |
PredictionClass |
getPredictionClass() |
java.lang.String |
toString() |
java.lang.String |
toTableRowString(java.lang.String lineFormat)
Output a nicely formatted string for this prediction.
|
public Prediction(PredictionClass predictionClass, double classProbability)
predictionClass
- Prediction classclassProbability
- Class probabilitypublic Prediction(int classID, java.lang.String className, double classProbability)
classID
- Class ID.className
- Class nameclassProbability
- Class probability.public PredictionClass getPredictionClass()
public int getClassID()
public java.lang.String getClassName()
public double getClassProbability()
public java.lang.String toTableRowString(java.lang.String lineFormat)
lineFormat
- format stringpublic java.lang.String toString()
toString
in class java.lang.Object