|
||||||||||
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)
Adds all columns in the table spec as learning columns. |
Method Summary | |
---|---|
PMMLPortObjectSpec |
createSpec()
Creates a new PMMLPortObjectSpec based on the internal attributes
of this creator. |
void |
setIgnoredCols(List<DataColumnSpec> ignoredCols)
|
void |
setIgnoredColsNames(List<String> ignoredCols)
|
void |
setLearningCols(List<DataColumnSpec> learningCols)
|
void |
setLearningColsNames(List<String> learningCols)
|
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)
|
void |
setTargetColsNames(List<String> targetCols)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PMMLPortObjectSpecCreator(DataTableSpec tableSpec) throws InvalidSettingsException
tableSpec
- equivalent to the data dictionary
InvalidSettingsException
- if a data column type is not compatible
with double or nominal value (not supported by PMML)Method Detail |
---|
public void setLearningColsNames(List<String> learningCols)
learningCols
- the learningCols to setpublic void setLearningCols(List<DataColumnSpec> learningCols)
learningCols
- column used for trainingpublic void setIgnoredColsNames(List<String> ignoredCols)
ignoredCols
- the ignoredCols to setpublic void setIgnoredCols(List<DataColumnSpec> ignoredCols)
ignoredCols
- columns ignored during learningpublic 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 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 |