public class PredictionOutcome extends Object
PredictionService
.Constructor and Description |
---|
PredictionOutcome()
Creates an empty prediction.
|
PredictionOutcome(double confidenceLevel,
double confidenceThreshold,
Map<String,Object> data)
Returns a prediction for a prediction service with the specified confidence level, confidence threshold and
outcome.
|
Modifier and Type | Method and Description |
---|---|
double |
getConfidenceLevel() |
double |
getConfidenceThreshold() |
Map<String,Object> |
getData() |
boolean |
isCertain()
Returns true if a prediction has a confidence level above the specified threshold otherwise false
|
boolean |
isPresent() |
public PredictionOutcome()
public PredictionOutcome(double confidenceLevel, double confidenceThreshold, Map<String,Object> data)
confidenceLevel
- Numerical value to quantify confidence level for this predictionconfidenceThreshold
- The threshold above which a prediction should be automatically accepteddata
- A map containing the outcome names and values (respectively as map keys and values)public boolean isPresent()
public boolean isCertain()
public double getConfidenceLevel()
public double getConfidenceThreshold()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.