else if (PMML.Models.REGRESSION.equals(pmml.model_type))
model = new RegressionModel(pmml);
else if (PMML.Models.CLUSTERING.equals(pmml.model_type))
model = new ClusteringModel(pmml);
else if (PMML.Models.GENERALIZED_REGRESSION.equals(pmml.model_type))
model = new GeneralizedRegressionModel(pmml);
else
throw new PatternException("unsupported model type: "
+ pmml.model_type.name());
} catch (IOException exception) {
LOG.error("could not read PMML file", exception);