|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.port.pmml.PMMLPortObjectSpecCreator
public class PMMLPortObjectSpecCreator
| Constructor Summary | |
|---|---|
PMMLPortObjectSpecCreator(DataTableSpec tableSpec)
|
|
PMMLPortObjectSpecCreator(PMMLPortObject portObject,
DataTableSpec tableSpec)
Creates a new PMMLPortObjectSpecCreator based on an existing
PMMLPortObject. |
|
PMMLPortObjectSpecCreator(PMMLPortObjectSpec portSpec)
Creates a new PMMLPortObjectSpecCreator based on an existing
PMMLPortObjectSpec. |
|
PMMLPortObjectSpecCreator(PMMLPortObjectSpec portSpec,
DataTableSpec tableSpec)
Creates a new PMMLPortObjectSpecCreator based on an existing
PMMLPortObjectSpec and a DataTableSpec. |
|
| Method Summary | |
|---|---|
void |
addPreprocColNames(List<String> colNames)
Adds the specified column names as preprocessing column. |
void |
addPreprocCols(List<DataColumnSpec> activeCols)
Adds the specified columns as preprocessing column. |
PMMLPortObjectSpec |
createSpec()
Creates a new PMMLPortObjectSpec based on the internal attributes
of this creator. |
void |
setLearningCols(DataTableSpec tableSpec)
Sets all columns of the data table spec as learning columns. |
void |
setLearningCols(List<DataColumnSpec> learningCols)
Only double and nominal value compatible columns are yet supported for PMML models! |
void |
setLearningColsNames(List<String> learningCols)
Only double and nominal value compatible columns are yet supported for PMML models! |
void |
setTargetCol(DataColumnSpec targetCol)
Puts argument into set and call setTargetCols(List). |
void |
setTargetColName(String targetCol)
Puts argument into set and call setTargetColsNames(List). |
void |
setTargetCols(List<DataColumnSpec> targetCols)
Only double and nominal value compatible columns are yet supported for PMML models! |
void |
setTargetColsNames(List<String> targetCols)
Only double and nominal value compatible columns are yet supported for PMML models! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMMLPortObjectSpecCreator(DataTableSpec tableSpec)
tableSpec - equivalent to the data dictionary
public PMMLPortObjectSpecCreator(PMMLPortObject portObject,
DataTableSpec tableSpec)
PMMLPortObjectSpecCreator based on an existing
PMMLPortObject. If portObject is null it has the same effect as
calling PMMLPortObjectSpecCreator(DataTableSpec).
portObject - the PMMLPortObject to base this instance ontableSpec - the DataTableSpec
public PMMLPortObjectSpecCreator(PMMLPortObjectSpec portSpec,
DataTableSpec tableSpec)
PMMLPortObjectSpecCreator based on an existing
PMMLPortObjectSpec and a DataTableSpec.
portSpec - the PMMLPortObjectSpec to base this instance ontableSpec - the DataTableSpecpublic PMMLPortObjectSpecCreator(PMMLPortObjectSpec portSpec)
PMMLPortObjectSpecCreator based on an existing
PMMLPortObjectSpec.
portSpec - the PMMLPortObjectSpec to base this instance on| Method Detail |
|---|
public void setLearningColsNames(List<String> learningCols)
learningCols - the learningCols to setpublic void setLearningCols(List<DataColumnSpec> learningCols)
learningCols - column used for training
public void setLearningCols(DataTableSpec tableSpec)
throws InvalidSettingsException
tableSpec - the table spec containing the columns to be added
InvalidSettingsException - if a data column type is not compatible
with double or nominal value (not supported by PMML)public void setTargetColName(String targetCol)
setTargetColsNames(List).
targetCol - the target column to setpublic void setTargetCol(DataColumnSpec targetCol)
setTargetCols(List).
targetCol - the target column to setpublic void setTargetColsNames(List<String> targetCols)
targetCols - the targetCols to setpublic void setTargetCols(List<DataColumnSpec> targetCols)
targetCols - predicted columnspublic void addPreprocCols(List<DataColumnSpec> activeCols)
activeCols - active columnspublic void addPreprocColNames(List<String> colNames)
colNames - the names of the columns to be marked as activepublic PMMLPortObjectSpec createSpec()
PMMLPortObjectSpec based on the internal attributes
of this creator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||