org.knime.base.node.mine.svm
Class PMMLSVMTranslator

java.lang.Object
  extended by org.knime.base.node.mine.svm.PMMLSVMTranslator
All Implemented Interfaces:
PMMLTranslator

public class PMMLSVMTranslator
extends Object
implements PMMLTranslator

A SVM translator class between KNIME and PMML.

Author:
Dominik Morent, KNIME.com AG, Zurich, Switzerland, wenlin, Zementis, Apr 2011

Constructor Summary
PMMLSVMTranslator()
          Creates a new empty PMML SVM translator.
PMMLSVMTranslator(List<String> targetValues, List<Svm> svms, Kernel kernel)
           
 
Method Summary
 org.apache.xmlbeans.SchemaType exportTo(org.dmg.pmml40.PMMLDocument pmmlDoc, PMMLPortObjectSpec spec)
          Exports the translators state to a PMML document.
 Kernel getKernel()
           
 List<Svm> getSVMs()
          /**
 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

PMMLSVMTranslator

public PMMLSVMTranslator()
Creates a new empty PMML SVM translator. The initialization has to be performed by calling the initializeFrom(PMMLDocument) method.


PMMLSVMTranslator

public PMMLSVMTranslator(List<String> targetValues,
                         List<Svm> svms,
                         Kernel kernel)
Parameters:
targetValues - the values of the target column
svms - the svms
kernel - the kernel
Method Detail

getSVMs

public List<Svm> getSVMs()
/**

Returns:
the Svms in the PMML file.

getKernel

public Kernel getKernel()
Returns:
the used Kernel.

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


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.