org.knime.base.node.mine.bayes.naivebayes.port
Class NaiveBayesPortObjectSpec
java.lang.Object
org.knime.core.node.port.AbstractSimplePortObjectSpec
org.knime.base.node.mine.bayes.naivebayes.port.NaiveBayesPortObjectSpec
- All Implemented Interfaces:
- PortObjectSpec
public class NaiveBayesPortObjectSpec
- extends AbstractSimplePortObjectSpec
The Naive Bayes specific port object specification implementation.
- Author:
- Tobias Koetter, University of Konstanz
NaiveBayesPortObjectSpec
public NaiveBayesPortObjectSpec()
- Constructor for class NaiveBayesPortObjectSpec.
NaiveBayesPortObjectSpec
public NaiveBayesPortObjectSpec(DataTableSpec traingDataSpec,
DataColumnSpec classColumn)
- Constructor for class NaiveBayesPortObjectSpec.
- Parameters:
traingDataSpec
- the DataTableSpec
of the training data
tableclassColumn
- the name of the class column
load
protected void load(ModelContentRO model)
throws InvalidSettingsException
- Loads the content into the freshly instantiated object. This method
is called at most once in the life time of the object
(after the serializer has created a new object using the public no-arg
constructor.)
- Specified by:
load
in class AbstractSimplePortObjectSpec
- Parameters:
model
- To load from.
- Throws:
InvalidSettingsException
- If settings are incomplete/deficient.
save
protected void save(ModelContentWO model)
- Saves this object to model content object.
- Specified by:
save
in class AbstractSimplePortObjectSpec
- Parameters:
model
- To save to.
getTableSpec
public DataTableSpec getTableSpec()
- Returns:
- the tableSpec of the training data
getClassColumn
public DataColumnSpec getClassColumn()
- Returns:
- the column that contained the classes
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.