java.lang.Object
com.pervasive.datarush.analytics.pmml.PMMLModelSpec
- All Implemented Interfaces:
Serializable
Meta-information associated with a given PMMLModel.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPMMLModelSpec(RecordTokenType inputType, List<String> learningCols, List<String> targetCols) Creates a PMMLModelSpec for the given input -
Method Summary
Modifier and TypeMethodDescriptionstatic PMMLModelSpecforAll(RecordTokenType inputType, String... targetColumns) Convenience method to create a model spec where the learning columns are all input columns minus the target columnsstatic PMMLModelSpecforSelected(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.Returns the input type for which we are constructing a modelReturns the learning columns (i.e.Returns the target columns (i.e.Returns the target type.
-
Constructor Details
-
PMMLModelSpec
Creates a PMMLModelSpec for the given input- Parameters:
inputType- the input type being learnedlearningCols- the learning columns (i.e. independent variables)targetCols- the target columns (i.e. dependent variables)
-
-
Method Details
-
forAll
Convenience method to create a model spec where the learning columns are all input columns minus the target columns- Parameters:
inputType- the full input typetargetColumns- the target columns- Returns:
- a new model spec
-
forSelected
public 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.- Parameters:
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 columns- Returns:
- a PMMLModelSpec
-
getInputType
Returns the input type for which we are constructing a model- Returns:
- the input type for which we are constructing a model
-
getLearningCols
Returns the learning columns (i.e. independent variables)- Returns:
- the learning columns
-
getTargetCols
Returns the target columns (i.e. dependent variables)- Returns:
- the target columns
-
getTargetType
Returns the target type. This is the target columns selected from the input type.- Returns:
- the target type
-