public abstract class AbstractPMMLBackend extends Object implements org.kie.internal.task.api.prediction.PredictionService
Modifier and Type | Field and Description |
---|---|
protected double |
confidenceThreshold |
protected List<String> |
inputFeatures |
protected String |
outcomeFeatureName |
protected List<? extends org.jpmml.evaluator.OutputField> |
outputFields |
Constructor and Description |
---|
AbstractPMMLBackend(List<String> inputFeatures,
String outputFeatureName,
double confidenceThreshold,
File pmmlFile) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,?> |
evaluate(Map<String,Object> data) |
protected abstract Map<String,Object> |
preProcess(Map<String,Object> data)
Returns the processed data (e.g. perform categorisation, etc).
|
void |
train(org.kie.api.task.model.Task task,
Map<String,Object> inputData,
Map<String,Object> outputData)
Method to train a model.
|
protected final List<? extends org.jpmml.evaluator.OutputField> outputFields
protected String outcomeFeatureName
protected double confidenceThreshold
public void train(org.kie.api.task.model.Task task, Map<String,Object> inputData, Map<String,Object> outputData)
train
in interface org.kie.internal.task.api.prediction.PredictionService
task
- Human task datainputData
- A map containing the input attribute names as keys and the attribute values as values.outputData
- A map containing the output attribute names as keys and the attribute values as values.protected abstract Map<String,Object> preProcess(Map<String,Object> data)
data
- A map containing the input data, with attribute names as key and values as values.Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.