org.knime.core.node.port.pmml
Class PMMLPortObjectSpecCreator

java.lang.Object
  extended by org.knime.core.node.port.pmml.PMMLPortObjectSpecCreator

public class PMMLPortObjectSpecCreator
extends Object

Author:
Fabian Dill, University of Konstanz

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

PMMLPortObjectSpecCreator

public PMMLPortObjectSpecCreator(DataTableSpec tableSpec)
                          throws InvalidSettingsException
Adds all columns in the table spec as learning columns. When the target or ignore columns are set, they are removed from the learning columns.

Parameters:
tableSpec - equivalent to the data dictionary
Throws:
InvalidSettingsException - if a data column type is not compatible with double or nominal value (not supported by PMML)
Method Detail

setLearningColsNames

public void setLearningColsNames(List<String> learningCols)
Parameters:
learningCols - the learningCols to set

setLearningCols

public void setLearningCols(List<DataColumnSpec> learningCols)
Parameters:
learningCols - column used for training

setIgnoredColsNames

public void setIgnoredColsNames(List<String> ignoredCols)
Parameters:
ignoredCols - the ignoredCols to set

setIgnoredCols

public void setIgnoredCols(List<DataColumnSpec> ignoredCols)
Parameters:
ignoredCols - columns ignored during learning

setTargetColName

public void setTargetColName(String targetCol)
Puts argument into set and call setTargetColsNames(List).

Parameters:
targetCol - the target column to set

setTargetCol

public void setTargetCol(DataColumnSpec targetCol)
Puts argument into set and call setTargetCols(List).

Parameters:
targetCol - the target column to set

setTargetColsNames

public void setTargetColsNames(List<String> targetCols)
Parameters:
targetCols - the targetCols to set

setTargetCols

public void setTargetCols(List<DataColumnSpec> targetCols)
Parameters:
targetCols - predicted columns

createSpec

public PMMLPortObjectSpec createSpec()
Creates a new PMMLPortObjectSpec based on the internal attributes of this creator.

Returns:
created spec based upon the set attributes


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.