public class LogisticRegressionLearner extends CompositeOperator
Constructor and Description |
---|
LogisticRegressionLearner() |
Modifier and Type | Method and Description |
---|---|
protected void |
compose(CompositionContext ctx)
Compose the body of this operator.
|
RecordPort |
getInput() |
List<String> |
getLearningColumns() |
double |
getLearningRate()
Gets the learning rate, alpha.
|
int |
getMaxDistinctNominalValues()
Returns the maximum number of distinct nominal values to allow.
|
int |
getMaxIterations() |
PMMLPort |
getModelOutput() |
double |
getRidge() |
long |
getSeed() |
String |
getTargetColumn() |
double |
getTolerance() |
void |
setLearningColumns(List<String> learningColumns)
Controls which fields are treated as independent variables.
|
void |
setLearningRate(double learningRate)
Set the learning rate that should be used at the start of the computation.
|
void |
setMaxDistinctNominalValues(int maxDistinctNominalValues)
Sets the maximum number of distinct nominal values to allow.
|
void |
setMaxIterations(int maxIterations)
Control the maximum number of iterations attempted before generating a model.
|
void |
setRidge(double ridge)
Sets the regularization constant, lambda.
|
void |
setSeed(long seed)
Sets the seed for the random numbers used by the algorithm.
|
void |
setTargetColumn(String targetColumn) |
void |
setTolerance(double threshold)
Sets the strictness of the convergence criterion, as a fraction of the total length of the coefficient vector.
|
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public List<String> getLearningColumns()
public void setLearningColumns(List<String> learningColumns)
learningColumns
- the names of the fields that are treated as independent variables.public String getTargetColumn()
public void setTargetColumn(String targetColumn)
targetColumn
- the field name of the desired dependent (predicted) variable.public RecordPort getInput()
public PMMLPort getModelOutput()
public int getMaxDistinctNominalValues()
public void setMaxDistinctNominalValues(int maxDistinctNominalValues)
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 contextpublic double getRidge()
public void setRidge(double ridge)
ridge
- the desired regularization parameter.com.pervasive.datarush.graphs.physical.InvalidPropertyValueException
- if ridge is not between 0 and 1.public double getLearningRate()
public void setLearningRate(double learningRate)
learningRate
- the learning rate alpha that should be used at the start of the computation.com.pervasive.datarush.graphs.physical.InvalidPropertyValueException
- if the learning rate is set to 0 or less.public int getMaxIterations()
public void setMaxIterations(int maxIterations)
maxIterations
- the desired maximum number of passes over the datasetcom.pervasive.datarush.graphs.physical.InvalidPropertyValueException
- if maxIterations is set to a negative valuepublic double getTolerance()
public void setTolerance(double threshold)
threshold
- the desired convergence thresholdcom.pervasive.datarush.graphs.physical.InvalidPropertyValueException
- if threshold is negativepublic long getSeed()
public void setSeed(long seed)
seed
- the desired base seed for the random number generatorCopyright © 2016 Actian Corporation. All rights reserved.