Class KiePMMLModelWithSources

    • Constructor Detail

      • KiePMMLModelWithSources

        public KiePMMLModelWithSources​(String modelName,
                                       String kmodulePackageName,
                                       List<org.kie.pmml.api.models.MiningField> miningFields,
                                       List<org.kie.pmml.api.models.OutputField> outputFields,
                                       List<KiePMMLTarget> targetFields,
                                       Map<String,​String> sourcesMap)
    • Method Detail

      • evaluate

        public Object evaluate​(Object knowledgeBase,
                               Map<String,​Object> requestData,
                               org.kie.pmml.api.runtime.PMMLContext context)
        Specified by:
        evaluate in class KiePMMLModel
        Parameters:
        knowledgeBase - the knowledgeBase we are working on. Add as Object to avoid direct dependency. It is needed only by Drools-dependent models, so it may be ignored by others
        context - used to accumulate additional evaluated values
        Returns:
      • getMiningFields

        public List<org.kie.pmml.api.models.MiningField> getMiningFields()
        Specified by:
        getMiningFields in interface org.kie.pmml.api.models.PMMLModel
        Overrides:
        getMiningFields in class KiePMMLModel
      • getOutputFields

        public List<org.kie.pmml.api.models.OutputField> getOutputFields()
        Specified by:
        getOutputFields in interface org.kie.pmml.api.models.PMMLModel
        Overrides:
        getOutputFields in class KiePMMLModel
      • getKModulePackageName

        public String getKModulePackageName()
        Description copied from class: KiePMMLModel
        Method to retrieve the package name to be used inside kiebase/package attribute of kmodule.xml and to use for package creation inside PMMLAssemblerService By default returns the package name of the current instance To be eventually overridden.
        Overrides:
        getKModulePackageName in class KiePMMLModel
        Returns: