public class RegressionPredictor extends AbstractPredictor
Modifier and Type | Field and Description |
---|---|
static String |
PREDICTED_SUFFIX
The default value for
getPredictedFieldSuffix() . |
Constructor and Description |
---|
RegressionPredictor()
Construct a new operator instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(PMMLModel model,
RecordValued input,
ScalarSettable[] predictedFields)
Called to perform prediction.
|
String |
getPredictedFieldSuffix()
Get the suffix to add to the target field name.
|
protected RecordTokenType |
predictedType(PMMLModelSpec modelSpec)
Given the model spec, returns the predicted type.
|
void |
setPredictedFieldSuffix(String predictedFieldSuffix)
Set the suffix to be added to the target field name.
|
computeMetadata, execute, getInput, getModel, getOutput, pushPrediction, stepNext
cloneForExecution, getNumInputCopies, getPortSettings, handleInactiveOutput
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public static final String PREDICTED_SUFFIX
getPredictedFieldSuffix()
.public RegressionPredictor()
public String getPredictedFieldSuffix()
public void setPredictedFieldSuffix(String predictedFieldSuffix)
predictedFieldSuffix
- target field name suffixprotected RecordTokenType predictedType(PMMLModelSpec modelSpec)
AbstractPredictor
predictedType
in class AbstractPredictor
modelSpec
- the model metadataprotected void execute(PMMLModel model, RecordValued input, ScalarSettable[] predictedFields)
AbstractPredictor
AbstractPredictor.stepNext()
. For each row of input, subclasses should first set the predicted values in
the predictedFields
array and then invoke AbstractPredictor.pushPrediction()
.
Subclasses should not invoke pushEndOfData
since that is automatically handled by
the base class.execute
in class AbstractPredictor
model
- The input PMML modelinput
- The input datapredictedFields
- An array of fields that reference the predicted field locations. The
array positionally corresponds to the type returned by AbstractPredictor.predictedType(PMMLModelSpec)
.Copyright © 2021 Actian Corporation. All rights reserved.