|
|||||||||||
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 java.lang.String |
applyClassifier(PMMLModel model,
Instances test)
|
static PMMLModel |
getPMMLModel(java.io.File file)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(java.io.File file,
Logger log)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(java.io.InputStream stream)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(java.io.InputStream stream,
Logger log)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(java.lang.String filename)
Read and return a PMML model. |
static PMMLModel |
getPMMLModel(java.lang.String filename,
Logger log)
Read and return a PMML model. |
static void |
main(java.lang.String[] args)
|
static void |
serializePMMLModel(PMMLModel model,
java.io.File file)
Serialize a PMMLModel object that encapsulates a PMML model |
static void |
serializePMMLModel(PMMLModel model,
java.io.OutputStream stream)
Serialize a PMMLModel object that encapsulates a PMML model |
static void |
serializePMMLModel(PMMLModel model,
java.lang.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(java.lang.String filename) throws java.lang.Exception
filename
- the name of the file to read from
java.lang.Exception
- if there is a problem while reading the filepublic static PMMLModel getPMMLModel(java.io.File file) throws java.lang.Exception
file
- a File
to read from
java.lang.Exception
- if there is a problem while reading the filepublic static PMMLModel getPMMLModel(java.io.InputStream stream) throws java.lang.Exception
stream
- the InputStream
to read from
java.lang.Exception
- if there is a problem while reading from the streampublic static PMMLModel getPMMLModel(java.lang.String filename, Logger log) throws java.lang.Exception
filename
- the name of the file to read fromlog
- the logging object to use (or null if none is to be used)
java.lang.Exception
- if there is a problem while reading the filepublic static PMMLModel getPMMLModel(java.io.File file, Logger log) throws java.lang.Exception
file
- a File
to read fromlog
- the logging object to use (or null if none is to be used)
java.lang.Exception
- if there is a problem while reading the filepublic static PMMLModel getPMMLModel(java.io.InputStream stream, Logger log) throws java.lang.Exception
stream
- the InputStream
to read fromlog
- the logging object to use (or null if none is to be used)
java.lang.Exception
- if there is a problem while reading from the streampublic static void serializePMMLModel(PMMLModel model, java.lang.String filename) throws java.lang.Exception
PMMLModel
object that encapsulates a PMML model
model
- the PMMLModel
to serializefilename
- the name of the file to save to
java.lang.Exception
- if something goes wrong during serializationpublic static void serializePMMLModel(PMMLModel model, java.io.File file) throws java.lang.Exception
PMMLModel
object that encapsulates a PMML model
model
- the PMMLModel
to serializefile
- the File
to save to
java.lang.Exception
- if something goes wrong during serializationpublic static void serializePMMLModel(PMMLModel model, java.io.OutputStream stream) throws java.lang.Exception
PMMLModel
object that encapsulates a PMML model
model
- the PMMLModel
to serializestream
- the OutputStream
to serialize to
java.lang.Exception
- if something goes wrong during serializationpublic static java.lang.String applyClassifier(PMMLModel model, Instances test) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |