public final class NaiveBayesLearner extends CompositeOperator
Laplace smoothing
in place of the "threshold" parameter.Constructor and Description |
---|
NaiveBayesLearner()
The default constructor.
|
NaiveBayesLearner(String targetColumn)
Creates a new instance of
NaiveBayesLearner , specifying
the minimal set of required parameters. |
Modifier and Type | Method and Description |
---|---|
protected void |
compose(CompositionContext ctx)
Compose the body of this operator.
|
RecordPort |
getInput()
The input data.
|
List<String> |
getLearningColumns()
Returns the list of columns to be used to predict the output value.
|
PMMLPort |
getModel()
Returns the output PMML model port.
|
String |
getTargetColumn()
Gets the column to be predicted.
|
void |
setLearningColumns(List<String> learningColumns)
Sets the list of columns to be used to predict the output value.
|
void |
setTargetColumn(String targetColumn)
Sets the column to be predicted.
|
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public NaiveBayesLearner()
public NaiveBayesLearner(String targetColumn)
NaiveBayesLearner
, specifying
the minimal set of required parameters.targetColumn
- the target column to predict. Must be of type StringValued
.public RecordPort getInput()
public PMMLPort getModel()
public final List<String> getLearningColumns()
public final void setLearningColumns(List<String> learningColumns)
learningColumns
- The list of columns to be used to predict the output value.public void setTargetColumn(String targetColumn)
targetColumn
- the column to be predictedpublic String getTargetColumn()
protected void compose(CompositionContext ctx)
CompositeOperator
OperatorComposable.add(O)
OperatorComposable.connect(P, P)
. This includes
connections from the composite's input ports to sub-operators, connections between sub-operators, and
connections from sub-operators output ports to the composite's output portscompose
in class CompositeOperator
ctx
- the contextCopyright © 2024 Actian Corporation. All rights reserved.