public class PMMLRandomForest extends AbstractPMMLBackend
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
confidenceThreshold, inputFeatures, outcomeFeatureName, outputFields| Constructor and Description |
|---|
PMMLRandomForest() |
PMMLRandomForest(List<String> inputFeatures,
String outputFeatureName,
double confidenceThreshold,
File pmmlFile) |
PMMLRandomForest(PMMLRandomForestConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier() |
org.kie.internal.task.api.prediction.PredictionOutcome |
predict(org.kie.api.task.model.Task task,
Map<String,Object> data)
Returns a model prediction given the input data
|
protected Map<String,Object> |
preProcess(Map<String,Object> data)
Returns the processed data (e.g. perform categorisation, etc).
|
evaluate, trainpublic static final String IDENTIFIER
public PMMLRandomForest()
public PMMLRandomForest(PMMLRandomForestConfiguration configuration)
protected Map<String,Object> preProcess(Map<String,Object> data)
preProcess in class AbstractPMMLBackenddata - A map containing the input data, with attribute names as key and values as values.public String getIdentifier()
public org.kie.internal.task.api.prediction.PredictionOutcome predict(org.kie.api.task.model.Task task,
Map<String,Object> data)
task - Human task datadata - A map containing the input attribute names as keys and the attribute values as values.PredictionOutcome containing the model's prediction for the input data.Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.