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; }
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; }