@Test public void validateKiePMMLMiningModel() { String name = "NAME"; KiePMMLMiningModel kiePMMLMiningModel = KiePMMLMiningModel.builder(name, Collections.emptyList(), MINING_FUNCTION.ASSOCIATION_RULES) .withTargetField("TARGET") .build(); evaluator.validate(kiePMMLMiningModel); }
void validate(final KiePMMLModel toValidate) { if (!(toValidate instanceof KiePMMLMiningModel)) { throw new KiePMMLModelException(String.format(EXPECTED_A_KIE_PMMLMINING_MODEL_RECEIVED, toValidate.getClass().getName())); } validateMining((KiePMMLMiningModel) toValidate); }
PMMLMiningModelEvaluator implements PMMLModelEvaluator<KiePMMLMiningModel> { void validate(final KiePMMLModel toValidate) { if (!(toValidate instanceof KiePMMLMiningModel)) { throw new KiePMMLModelException(String.format(EXPECTED_A_KIE_PMMLMINING_MODEL_RECEIVED, toValidate.getClass().getName())); } validateMining((KiePMMLMiningModel) toValidate); } }
PMMLMiningModelEvaluator implements PMMLModelEvaluator<KiePMMLMiningModel> { void validate(final KiePMMLModel toValidate) { if (!(toValidate instanceof KiePMMLMiningModel)) { throw new KiePMMLModelException(String.format(EXPECTED_A_KIE_PMMLMINING_MODEL_RECEIVED, toValidate.getClass().getName())); } validateMining((KiePMMLMiningModel) toValidate); }  }
PMMLMiningModelEvaluator implements PMMLModelEvaluator<KiePMMLMiningModel> { void validate(final KiePMMLModel toValidate) { if (!(toValidate instanceof KiePMMLMiningModel)) { throw new KiePMMLModelException(String.format(EXPECTED_A_KIE_PMMLMINING_MODEL_RECEIVED, toValidate.getClass().getName())); } validateMining((KiePMMLMiningModel) toValidate); }  @Override PMML_MODEL getPMMLModelType(); @Override PMML4Result evaluate(final KieBase knowledgeBase,
                                final KiePMMLMiningModel model,
                                final PMMLContext pmmlContext); }
PMMLMiningModelEvaluator implements PMMLModelEvaluator<KiePMMLMiningModel> { void validate(final KiePMMLModel toValidate) { if (!(toValidate instanceof KiePMMLMiningModel)) { throw new KiePMMLModelException(String.format(EXPECTED_A_KIE_PMMLMINING_MODEL_RECEIVED, toValidate.getClass().getName())); } validateMining((KiePMMLMiningModel) toValidate); }  @Override PMML_MODEL getPMMLModelType(); @Override PMML4Result evaluate(final KieBase knowledgeBase,
                                final KiePMMLMiningModel model,
                                final PMMLContext pmmlContext);  }