Class DummyModelResult
java.lang.Object
rawDeepLearningClassifier.dlClassification.dummyClassifier.DummyModelResult
- All Implemented Interfaces:
PredictionResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the analysis time.short[]
Get the class name IDs associated with this result.float[]
Get the predictions for this result.String representation of the resultlong
Get the time stamp.boolean
Check whether binary classification has passed.
-
Constructor Details
-
DummyModelResult
public DummyModelResult(float probability) -
DummyModelResult
public DummyModelResult(float[] probability)
-
-
Method Details
-
getPrediction
public float[] getPrediction()Description copied from interface:PredictionResult
Get the predictions for this result. The array contains the probabilities for all classes.- Specified by:
getPrediction
in interfacePredictionResult
- Returns:
- the prediction.
-
isBinaryClassification
public boolean isBinaryClassification()Description copied from interface:PredictionResult
Check whether binary classification has passed.- Specified by:
isBinaryClassification
in interfacePredictionResult
- Returns:
- true if binary classification has passed
-
getAnalysisTime
public double getAnalysisTime()Description copied from interface:PredictionResult
Get the analysis time.- Specified by:
getAnalysisTime
in interfacePredictionResult
- Returns:
- the analysis time.
-
getResultString
Description copied from interface:PredictionResult
String representation of the result- Specified by:
getResultString
in interfacePredictionResult
- Returns:
- a string of the result.
-
getClassNames
public short[] getClassNames()Description copied from interface:PredictionResult
Get the class name IDs associated with this result. Can be null. @see DLClassNameManager to get strings of class names.- Specified by:
getClassNames
in interfacePredictionResult
- Returns:
- a list of the class name ID for the result. Can be null or an array the same length as getPrediciton();
-
getTimeMillis
public long getTimeMillis()Description copied from interface:PredictionResult
Get the time stamp.- Specified by:
getTimeMillis
in interfacePredictionResult
- Returns:
- the millis datenumber.
-