I am using the jpmml library to parse a PMML document (an XML document with a PMML root element). I can parse some elements, but not all. Here I cannot parse the CategoricalPredictor attribute inside the RegressionTable element. Code for parsing CategoricalPredictor :
RegressionTable regressionTable = new RegressionTable(intercept); List<CategoricalPredictor> categoricalPredictor=regressionTable.getCategoricalPredictors(); System.out.println("Categorical Predictors:"); for(CategoricalPredictor c : categoricalPredictor){ System.out.println("Name :"+c.getName()+",\tValue :"+c.getValue()+ ",\tCoefficient :"+c.getCoefficient()); System.out.println(); }
With this code, I get nothing but categorical predictors: as a conclusion.
What should I do to get it? Your efforts will be noticeable. Thanks in advance.
source share