Package org.jbpm.prediction.pmml
Class PMMLRandomForest
- java.lang.Object
-
- org.jbpm.prediction.pmml.AbstractPMMLBackend
-
- org.jbpm.prediction.pmml.PMMLRandomForest
-
- All Implemented Interfaces:
org.kie.internal.task.api.prediction.PredictionService
public class PMMLRandomForest extends AbstractPMMLBackend
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTIFIER-
Fields inherited from class org.jbpm.prediction.pmml.AbstractPMMLBackend
confidenceThreshold, inputFeatures, outcomeFeatureName, outputFields
-
-
Constructor Summary
Constructors Constructor Description PMMLRandomForest()PMMLRandomForest(List<String> inputFeatures, String outputFeatureName, double confidenceThreshold, File pmmlFile)PMMLRandomForest(PMMLRandomForestConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdentifier()org.kie.internal.task.api.prediction.PredictionOutcomepredict(org.kie.api.task.model.Task task, Map<String,Object> data)Returns a model prediction given the input dataprotected Map<String,Object>preProcess(Map<String,Object> data)Returns the processed data (e.g. perform categorisation, etc).-
Methods inherited from class org.jbpm.prediction.pmml.AbstractPMMLBackend
evaluate, train
-
-
-
-
Field Detail
-
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PMMLRandomForest
public PMMLRandomForest()
-
PMMLRandomForest
public PMMLRandomForest(PMMLRandomForestConfiguration configuration)
-
-
Method Detail
-
preProcess
protected Map<String,Object> preProcess(Map<String,Object> data)
Returns the processed data (e.g. perform categorisation, etc). If no processing is needed, simply return the original data.- Specified by:
preProcessin classAbstractPMMLBackend- Parameters:
data- A map containing the input data, with attribute names as key and values as values.- Returns:
- data A map containing the processed data, with attribute names as key and values as values.
-
getIdentifier
public String getIdentifier()
-
predict
public 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- Parameters:
task- Human task datadata- A map containing the input attribute names as keys and the attribute values as values.- Returns:
- A
PredictionOutcomecontaining the model's prediction for the input data.
-
-