public final class PMMLUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.dmg.pmml.PMML |
buildSkeletonPMML() |
static org.dmg.pmml.PMML |
fromString(String pmmlString) |
static org.dmg.pmml.PMML |
read(InputStream in) |
static org.dmg.pmml.PMML |
read(Path path) |
static String |
toString(org.dmg.pmml.PMML pmml) |
static void |
write(org.dmg.pmml.PMML pmml,
OutputStream out) |
static void |
write(org.dmg.pmml.PMML pmml,
Path path) |
public static final String VERSION
public static org.dmg.pmml.PMML buildSkeletonPMML()
PMML with common Header fields like Application,
Timestamp, and version filled outpublic static void write(org.dmg.pmml.PMML pmml,
Path path)
throws IOException
pmml - PMML model to writepath - file to write the model toIOException - if an error occurs while writing the model to storagepublic static void write(org.dmg.pmml.PMML pmml,
OutputStream out)
throws IOException
pmml - PMML model to writeout - stream to write the model toIOException - if an error occurs while writing the model to storagepublic static org.dmg.pmml.PMML read(Path path) throws IOException
path - file to read PMML fromPMML model file from pathIOException - if an error occurs while reading the model from storagepublic static org.dmg.pmml.PMML read(InputStream in) throws IOException
in - stream to read PMML fromPMML model file from streamIOException - if an error occurs while reading the model from the streampublic static String toString(org.dmg.pmml.PMML pmml)
pmml - modelpublic static org.dmg.pmml.PMML fromString(String pmmlString) throws IOException
pmmlString - PMML model encoded as an XML doc in a stringPMML object representing the modelIOException - if XML can't be unserializedCopyright © 2014–2018. All rights reserved.