org.knime.base.node.mine.regression.pmmlgreg
Class PMMLGeneralRegressionTranslator

java.lang.Object
  extended by org.knime.base.node.mine.regression.pmmlgreg.PMMLGeneralRegressionTranslator
All Implemented Interfaces:
PMMLTranslator

public class PMMLGeneralRegressionTranslator
extends Object
implements PMMLTranslator

A general regression model translator class between KNIME and PMML.

Author:
Dominik Morent, KNIME.com AG, Zurich, Switzerland

Constructor Summary
PMMLGeneralRegressionTranslator()
          Creates a new PMML content translator for general regression models.
PMMLGeneralRegressionTranslator(PMMLGeneralRegressionContent content)
          Creates a new PMML content translator for general regression models.
 
Method Summary
 org.apache.xmlbeans.SchemaType exportTo(org.dmg.pmml40.PMMLDocument pmmlDoc, PMMLPortObjectSpec spec)
          Exports the translators state to a PMML document.
 PMMLGeneralRegressionContent getContent()
           
 void initializeFrom(org.dmg.pmml40.PMMLDocument pmmlDoc)
          Initializes the translator based on a PMML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMMLGeneralRegressionTranslator

public PMMLGeneralRegressionTranslator()
Creates a new PMML content translator for general regression models. For usage with the initializeFrom(PMMLDocument) method.


PMMLGeneralRegressionTranslator

public PMMLGeneralRegressionTranslator(PMMLGeneralRegressionContent content)
Creates a new PMML content translator for general regression models. For usage with the exportTo(PMMLDocument, PMMLPortObjectSpec) method.

Parameters:
content - the regression content for the model
Method Detail

initializeFrom

public void initializeFrom(org.dmg.pmml40.PMMLDocument pmmlDoc)
Initializes the translator based on a PMML document.

Specified by:
initializeFrom in interface PMMLTranslator
Parameters:
pmmlDoc - the PMML document

exportTo

public org.apache.xmlbeans.SchemaType exportTo(org.dmg.pmml40.PMMLDocument pmmlDoc,
                                               PMMLPortObjectSpec spec)
Exports the translators state to a PMML document.

Specified by:
exportTo in interface PMMLTranslator
Parameters:
pmmlDoc - the PMML document to export to
spec - the spec of the PMMLPortObject
Returns:
the schema type of the exported schema if applicable, otherwise null

getContent

public PMMLGeneralRegressionContent getContent()
Returns:
the content


Copyright, 2003 - 2012. 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.