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

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

public class PMMLMiningSchemaTranslator
extends Object

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

Constructor Summary
PMMLMiningSchemaTranslator()
          Creates an empty PMML mining schema translator.
 
Method Summary
 List<String> getActiveFields()
           
 List<String> getTargetFields()
           
 void initializeFrom(org.dmg.pmml40.PMMLDocument pmmlDoc)
          Initializes the mining schema translator based on a PMML document.
static void writeMiningSchema(PMMLPortObjectSpec portSpec, org.apache.xmlbeans.XmlObject model)
          Writes the MiningSchema based upon the fields of the passed PMMLPortObjectSpec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMMLMiningSchemaTranslator

public PMMLMiningSchemaTranslator()
Creates an empty PMML mining schema translator.

Method Detail

initializeFrom

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

Parameters:
pmmlDoc - the PMML document

writeMiningSchema

public static void writeMiningSchema(PMMLPortObjectSpec portSpec,
                                     org.apache.xmlbeans.XmlObject model)
Writes the MiningSchema based upon the fields of the passed PMMLPortObjectSpec.

Parameters:
portSpec - based upon this port object spec the mining schema is written
model - the PMML model element to write the mining schema to

getActiveFields

public List<String> getActiveFields()
Returns:
the learningFields

getTargetFields

public List<String> getTargetFields()
Returns:
the targetFields


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.