public interface PredictionService
This interface is still considered subject to change.
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier() |
PredictionOutcome |
predict(org.kie.api.task.model.Task task,
Map<String,Object> inputData)
Return an outcome prediction for a set of input attributes.
|
void |
train(org.kie.api.task.model.Task task,
Map<String,Object> inputData,
Map<String,Object> outputData)
Train a predictive model using task data and a set of input and outcome attributes.
|
String getIdentifier()
PredictionOutcome predict(org.kie.api.task.model.Task task, Map<String,Object> inputData)
task - Task information to be optionally used by the predictive modelinputData - A map of input attributes with the attribute name as key and the attribute value as value.void train(org.kie.api.task.model.Task task,
Map<String,Object> inputData,
Map<String,Object> outputData)
task - Task information to be optionally used by the predictive modelinputData - A map of input attributes with the attribute name as key and the attribute value as value.outputData - A map of output attributes (outcomes) with the attribute name as key and the attribute value as value.Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.