public class PMMLLogisticRegression extends AbstractPMMLBackend
Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER |
confidenceThreshold, inputFeatures, outcomeFeatureName, outputFields
Constructor and Description |
---|
PMMLLogisticRegression() |
PMMLLogisticRegression(List<String> inputFeatures,
String outputFeatureName,
double confidenceThreshold,
File pmmlFile) |
PMMLLogisticRegression(PMMLLogisticRegressionConfiguration 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, train
public static final String IDENTIFIER
public PMMLLogisticRegression()
public PMMLLogisticRegression(PMMLLogisticRegressionConfiguration configuration)
protected Map<String,Object> preProcess(Map<String,Object> data)
preProcess
in class AbstractPMMLBackend
data
- 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–2020 JBoss by Red Hat. All rights reserved.