Search in sources :

Example 1 with HasPMML

use of org.jpmml.evaluator.HasPMML in project openscoring by openscoring.

the class ModelRegistry method store.

public void store(Model model, OutputStream os) throws JAXBException {
    Evaluator evaluator = model.getEvaluator();
    if (evaluator instanceof HasPMML) {
        HasPMML hasPMML = (HasPMML) evaluator;
        PMML pmml = hasPMML.getPMML();
        marshal(pmml, os);
    }
}
Also used : HasPMML(org.jpmml.evaluator.HasPMML) PMML(org.dmg.pmml.PMML) HasPMML(org.jpmml.evaluator.HasPMML) Evaluator(org.jpmml.evaluator.Evaluator)

Aggregations

PMML (org.dmg.pmml.PMML)1 Evaluator (org.jpmml.evaluator.Evaluator)1 HasPMML (org.jpmml.evaluator.HasPMML)1