org.knime.base.node.io.pmml.read
Class PMMLImport
java.lang.Object
org.knime.base.node.io.pmml.read.PMMLImport
public class PMMLImport
- extends Object
- Author:
- Dominik Morent, KNIME.com, Zurich, Switzerland
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PMMLImport
public PMMLImport(File file,
boolean update)
throws IOException,
org.apache.xmlbeans.XmlException,
IllegalArgumentException
- Reads and validates the passed file and creates the
PMMLPortObjectSpec from the content of the file.
- Parameters:
file - containing the PMML modelupdate - try to update the PMML to version 4.0 if an older version
is imported
- Throws:
IOException - if something goes wrong reading the file
org.apache.xmlbeans.XmlException - if an invalid PMML file is passed
IllegalArgumentException - if the input file is invalid or has
invalid content
PMMLImport
public PMMLImport(File file)
throws IOException,
org.apache.xmlbeans.XmlException,
IllegalArgumentException
- Reads and validates the passed file and creates the
PMMLPortObjectSpec from the content of the file.
- Parameters:
file - containing the PMML model
- Throws:
IOException - if something goes wrong reading the file
org.apache.xmlbeans.XmlException - if an invalid PMML file is passed
IllegalArgumentException - if the input file is invalid or has
invalid content
PMMLImport
public PMMLImport(Document doc)
throws IOException,
org.apache.xmlbeans.XmlException,
IllegalArgumentException
- Reads and validates the passed file and creates the
PMMLPortObjectSpec from the content of the file.
- Parameters:
doc - the document containing the PMML model
- Throws:
IOException - if something goes wrong reading the file
org.apache.xmlbeans.XmlException - if an invalid PMML file is passed
IllegalArgumentException - if the input file is invalid or has
invalid content
getPortObjectSpec
public PMMLPortObjectSpec getPortObjectSpec()
- Returns:
- the parsed port object spec (data dictionary and mining schema)
getPortObject
public PMMLPortObject getPortObject()
- Returns:
- the parsed PMML model
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.