|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.pmml.PMMLFactory
public class PMMLFactory
This class is a factory class for reading/writing PMML models
| Constructor Summary | |
|---|---|
PMMLFactory()
|
|
| Method Summary | |
|---|---|
static String |
applyClassifier(PMMLModel model,
Instances test)
|
static PMMLModel |
getPMMLModel(File file)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(File file,
Logger log)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(InputStream stream)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(InputStream stream,
Logger log)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(String filename)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(String filename,
Logger log)
Read and return a PMML model. |
static void |
main(String[] args)
|
static void |
serializePMMLModel(PMMLModel model,
File file)
Serialize a PMMLModel object that encapsulates a PMML model |
static void |
serializePMMLModel(PMMLModel model,
OutputStream stream)
Serialize a PMMLModel object that encapsulates a PMML model |
static void |
serializePMMLModel(PMMLModel model,
String filename)
Serialize a PMMLModel object that encapsulates a PMML model |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMMLFactory()
| Method Detail |
|---|
public static PMMLModel getPMMLModel(String filename)
throws Exception
filename - the name of the file to read from
Exception - if there is a problem while reading the file
public static PMMLModel getPMMLModel(File file)
throws Exception
file - a File to read from
Exception - if there is a problem while reading the file
public static PMMLModel getPMMLModel(InputStream stream)
throws Exception
stream - the InputStream to read from
Exception - if there is a problem while reading from the stream
public static PMMLModel getPMMLModel(String filename,
Logger log)
throws Exception
filename - the name of the file to read fromlog - the logging object to use (or null if none is to be used)
Exception - if there is a problem while reading the file
public static PMMLModel getPMMLModel(File file,
Logger log)
throws Exception
file - a File to read fromlog - the logging object to use (or null if none is to be used)
Exception - if there is a problem while reading the file
public static PMMLModel getPMMLModel(InputStream stream,
Logger log)
throws Exception
stream - the InputStream to read fromlog - the logging object to use (or null if none is to be used)
Exception - if there is a problem while reading from the stream
public static void serializePMMLModel(PMMLModel model,
String filename)
throws Exception
PMMLModel object that encapsulates a PMML model
model - the PMMLModel to serializefilename - the name of the file to save to
Exception - if something goes wrong during serialization
public static void serializePMMLModel(PMMLModel model,
File file)
throws Exception
PMMLModel object that encapsulates a PMML model
model - the PMMLModel to serializefile - the File to save to
Exception - if something goes wrong during serialization
public static void serializePMMLModel(PMMLModel model,
OutputStream stream)
throws Exception
PMMLModel object that encapsulates a PMML model
model - the PMMLModel to serializestream - the OutputStream to serialize to
Exception - if something goes wrong during serialization
public static String applyClassifier(PMMLModel model,
Instances test)
throws Exception
Exceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||