Search in sources :

Example 11 with PMMLContextImpl

use of org.kie.pmml.evaluator.core.PMMLContextImpl in project drools by kiegroup.

the class PMMLTreeModelEvaluatorTest method commonEvaluate.

private void commonEvaluate(String modelName, Map<String, Object> inputData, String expectedScore) {
    final PMMLRequestData pmmlRequestData = getPMMLRequestData(modelName, inputData);
    PMMLContext pmmlContext = new PMMLContextImpl(pmmlRequestData);
    commonEvaluate(pmmlContext, expectedScore);
}
Also used : PMMLRequestData(org.kie.api.pmml.PMMLRequestData) PMMLContextImpl(org.kie.pmml.evaluator.core.PMMLContextImpl) PMMLContext(org.kie.pmml.api.runtime.PMMLContext)

Aggregations

PMMLContextImpl (org.kie.pmml.evaluator.core.PMMLContextImpl)11 PMMLRequestData (org.kie.api.pmml.PMMLRequestData)9 PMMLContext (org.kie.pmml.api.runtime.PMMLContext)7 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)2 Arrays (java.util.Arrays)2 Collections (java.util.Collections)2 List (java.util.List)2 Map (java.util.Map)2 Optional (java.util.Optional)2 IntStream (java.util.stream.IntStream)2 TestCase.assertEquals (junit.framework.TestCase.assertEquals)2 TestCase.assertNotNull (junit.framework.TestCase.assertNotNull)2 Assert.assertTrue (org.junit.Assert.assertTrue)2 Before (org.junit.Before)2 KieBase (org.kie.api.KieBase)2 PMML4Result (org.kie.api.pmml.PMML4Result)2 DATA_TYPE (org.kie.pmml.api.enums.DATA_TYPE)2 PMML_MODEL (org.kie.pmml.api.enums.PMML_MODEL)2 PMML_STEP (org.kie.pmml.api.enums.PMML_STEP)2