Java 类weka.core.pmml.PMMLFactory 实例源码

项目:autoweka    文件:AbstractPMMLClassifierTest.java   
public PMMLClassifier getClassifier(String name) {
  PMMLClassifier regression = null;
  try {
    PMMLModel model = 
      PMMLFactory.getPMMLModel(new BufferedInputStream(ClassLoader.getSystemResourceAsStream(
                "weka/classifiers/pmml/data/" + name)));

    regression = (PMMLClassifier)model;

  } catch (Exception ex) {
    ex.printStackTrace();
  }
  return regression;
}
项目:umple    文件:AbstractPMMLClassifierTest.java   
public PMMLClassifier getClassifier(String name) {
  PMMLClassifier regression = null;
  try {
    PMMLModel model = PMMLFactory.getPMMLModel(new BufferedInputStream(
      ClassLoader.getSystemResourceAsStream("weka/classifiers/pmml/data/"
        + name)));

    regression = (PMMLClassifier) model;

  } catch (Exception ex) {
    ex.printStackTrace();
  }
  return regression;
}