public final class PMMLModelSpec extends Object implements Serializable
| Constructor and Description |
|---|
PMMLModelSpec(RecordTokenType inputType,
List<String> learningCols,
List<String> targetCols)
Creates a PMMLModelSpec for the given input
|
| Modifier and Type | Method and Description |
|---|---|
static PMMLModelSpec |
forAll(RecordTokenType inputType,
String... targetColumns)
Convenience method to create a model spec where the learning columns
are all input columns minus the target columns
|
static PMMLModelSpec |
forSelected(RecordTokenType inputType,
List<String> selectedColumns,
String... targetColumns)
Convenience method to create a model spec where the learning columns
are the specified selected columns minus the set of target columns.
|
RecordTokenType |
getInputType()
Returns the input type for which we are constructing a model
|
List<String> |
getLearningCols()
Returns the learning columns (i.e.
|
List<String> |
getTargetCols()
Returns the target columns (i.e.
|
RecordTokenType |
getTargetType()
Returns the target type.
|
public PMMLModelSpec(RecordTokenType inputType, List<String> learningCols, List<String> targetCols)
inputType - the input type being learnedlearningCols - the learning columns (i.e. independent variables)targetCols - the target columns (i.e. dependent variables)public static PMMLModelSpec forAll(RecordTokenType inputType, String... targetColumns)
inputType - the full input typetargetColumns - the target columnspublic static PMMLModelSpec forSelected(RecordTokenType inputType, List<String> selectedColumns, String... targetColumns)
inputType - the input typeselectedColumns - the selected columns. If null or empty the
learning columns are all columns minus the target columns. If non-empty
the learning columns are selected columns minus the target columns.targetColumns - the target columnspublic RecordTokenType getInputType()
public List<String> getLearningCols()
public List<String> getTargetCols()
public RecordTokenType getTargetType()
Copyright © 2021 Actian Corporation. All rights reserved.