public interface DecisionListTaskFactory
DecisionListModelInteractor
.Modifier and Type | Interface and Description |
---|---|
static interface |
DecisionListTaskFactory.Condition
Describes a selection condition for a data partition.
|
static interface |
DecisionListTaskFactory.Partition
Describes a data partition.
|
Modifier and Type | Method and Description |
---|---|
DecisionListTaskFactory.Condition |
createDiscreteCondition(java.lang.String name,
java.lang.Object[] values)
Returns a condition which selects records satisfying the predicate:
column IN values
If the list of values is empty the condition selects no records.
|
Task |
createEvaluateModelTask(DecisionListModel model,
DecisionListTaskFactory.Partition[] partitions)
Creates a task which will evaluate a model against a specified set of data partitions.
|
Task |
createExtendModelTask(DecisionListModel model,
DecisionListTaskFactory.Partition partition,
java.util.Map buildSettings)
Creates a task which will extend a model against a specified data partition.
|
Task |
createExtendModelTask(DecisionListModel model,
DecisionListTaskFactory.Partition partition,
PropertiedObject buildSettings)
Creates a task which will extend a model against a specified data partition.
|
DecisionListTaskFactory.Partition |
createPartition(DecisionListTaskFactory.Condition[] conditions)
Returns a new data partition which is defined by the specified selection conditions.
|
Task createEvaluateModelTask(DecisionListModel model, DecisionListTaskFactory.Partition[] partitions)
The task must be executed on the interactor which provided this factory.
If execution completes successfully the result of the task is an array of DecisionListModel
containing one model for each partition.
Each model in the array is a copy of the original model but with its performance measures updated.
model
- the model to be evaluatedpartitions
- the list of partitions against which to evaluate the modelTask createExtendModelTask(DecisionListModel model, DecisionListTaskFactory.Partition partition, PropertiedObject buildSettings)
buildSettings
object which will
typically be a ModelBuilder
node of type ProcessorType.BUILD_DECISION_LIST
;
settings not specified in this object are left as default.
The task must be executed on the interactor which provided this factory.
If execution completes successfully the result of the task is an array of DecisionListModel
where each model in the array is an extension of the original model.
There may be no models if the algorithm could find no additional rules satisfying the build criteria,
or more than one if the algorithm found alternatives.
Models are ordered in decreasing order of probability.
model
- the model to be extendedpartition
- the training partitionbuildSettings
- specifies the algorithm parametersTask createExtendModelTask(DecisionListModel model, DecisionListTaskFactory.Partition partition, java.util.Map buildSettings) throws InvalidPropertyException
buildSettings
which map property
names to values; settings not specified in the map are left as default.
This functions identically to
createExtendModelTask(DecisionListModel, Partition, PropertiedObject)
except that the properties are specified in a separate map rather than directly on the
build node.
model
- the model to be extendedpartition
- the training partitionbuildSettings
- specifies the algorithm parametersInvalidPropertyException
- if the build settings are invalidDecisionListTaskFactory.Partition createPartition(DecisionListTaskFactory.Condition[] conditions)
conditions
- the selection conditionsDecisionListTaskFactory.Condition createDiscreteCondition(java.lang.String name, java.lang.Object[] values)
column IN valuesIf the list of values is empty the condition selects no records.
name
- the name of the column to be tested; the column must exist in the data model and have
discrete (categorical) measurevalues
- a list of constant values against which the column value is to be compared;
the values must be valid for the columnCopyright © 2014 Integral Solutions Ltd. All Rights Reserved.