程序包 weka.core.pmml
类 PMMLFactory
java.lang.Object
weka.core.pmml.PMMLFactory
This class is a factory class for reading/writing PMML models
- 版本:
- $Revision: 5562 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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
static void
serializePMMLModel
(PMMLModel model, File file) Serialize aPMMLModel
object that encapsulates a PMML modelstatic void
serializePMMLModel
(PMMLModel model, OutputStream stream) Serialize aPMMLModel
object that encapsulates a PMML modelstatic void
serializePMMLModel
(PMMLModel model, String filename) Serialize aPMMLModel
object that encapsulates a PMML model
-
构造器详细资料
-
PMMLFactory
public PMMLFactory()
-
-
方法详细资料
-
getPMMLModel
Read and return a PMML model.- 参数:
filename
- the name of the file to read from- 返回:
- a PMML model
- 抛出:
Exception
- if there is a problem while reading the file
-
getPMMLModel
Read and return a PMML model.- 参数:
file
- aFile
to read from- 返回:
- a PMML model
- 抛出:
Exception
- if there is a problem while reading the file
-
getPMMLModel
Read and return a PMML model.- 参数:
stream
- theInputStream
to read from- 返回:
- a PMML model
- 抛出:
Exception
- if there is a problem while reading from the stream
-
getPMMLModel
Read and return a PMML model.- 参数:
filename
- the name of the file to read fromlog
- the logging object to use (or null if none is to be used)- 返回:
- a PMML model
- 抛出:
Exception
- if there is a problem while reading the file
-
getPMMLModel
Read and return a PMML model.- 参数:
file
- aFile
to read fromlog
- the logging object to use (or null if none is to be used)- 返回:
- a PMML model
- 抛出:
Exception
- if there is a problem while reading the file
-
getPMMLModel
Read and return a PMML model.- 参数:
stream
- theInputStream
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
-
serializePMMLModel
Serialize aPMMLModel
object that encapsulates a PMML model- 参数:
model
- thePMMLModel
to serializefilename
- the name of the file to save to- 抛出:
Exception
- if something goes wrong during serialization
-
serializePMMLModel
Serialize aPMMLModel
object that encapsulates a PMML model- 参数:
model
- thePMMLModel
to serializefile
- theFile
to save to- 抛出:
Exception
- if something goes wrong during serialization
-
serializePMMLModel
Serialize aPMMLModel
object that encapsulates a PMML model- 参数:
model
- thePMMLModel
to serializestream
- theOutputStream
to serialize to- 抛出:
Exception
- if something goes wrong during serialization
-
applyClassifier
- 抛出:
Exception
-
main
-