Class PMML4Compiler


  • public class PMML4Compiler
    extends Object
    • Field Detail

      • BASE_PACK

        public static final String BASE_PACK
      • globalLoaded

        protected static boolean globalLoaded
      • GLOBAL_TEMPLATES

        protected static final String[] GLOBAL_TEMPLATES
      • transformationLoaded

        protected static boolean transformationLoaded
      • TRANSFORMATION_TEMPLATES

        protected static final String[] TRANSFORMATION_TEMPLATES
      • miningLoaded

        protected static boolean miningLoaded
      • MINING_TEMPLATES

        protected static final String[] MINING_TEMPLATES
      • neuralLoaded

        protected static boolean neuralLoaded
      • NEURAL_TEMPLATES

        protected static final String[] NEURAL_TEMPLATES
      • svmLoaded

        protected static boolean svmLoaded
      • SVM_TEMPLATES

        protected static final String[] SVM_TEMPLATES
      • naiveBayesLoaded

        protected static boolean naiveBayesLoaded
      • NAIVE_BAYES_TEMPLATES

        protected static final String[] NAIVE_BAYES_TEMPLATES
      • simpleRegLoaded

        protected static boolean simpleRegLoaded
      • SIMPLEREG_TEMPLATES

        protected static final String[] SIMPLEREG_TEMPLATES
      • clusteringLoaded

        protected static boolean clusteringLoaded
      • CLUSTERING_TEMPLATES

        protected static final String[] CLUSTERING_TEMPLATES
      • treeLoaded

        protected static boolean treeLoaded
      • TREE_TEMPLATES

        protected static final String[] TREE_TEMPLATES
      • scorecardLoaded

        protected static boolean scorecardLoaded
      • SCORECARD_TEMPLATES

        protected static final String[] SCORECARD_TEMPLATES
      • RESOURCE_PATH

        protected static final String RESOURCE_PATH
      • TEMPLATE_PATH

        protected static final String TEMPLATE_PATH
    • Constructor Detail

      • PMML4Compiler

        public PMML4Compiler()
    • Method Detail

      • generateTheory

        public String generateTheory​(org.dmg.pmml.pmml_4_2.descr.PMML pmml)
      • transform

        public org.kie.api.io.Resource[] transform​(org.kie.api.io.Resource resource,
                                                   ClassLoader classLoader)
      • buildResourceFromSegment

        protected PMMLResource buildResourceFromSegment​(org.dmg.pmml.pmml_4_2.descr.PMML pmml_origin,
                                                        MiningSegment segment,
                                                        ClassLoader classLoader,
                                                        org.kie.api.builder.model.KieModuleModel module)
      • compile

        public String compile​(org.dmg.pmml.pmml_4_2.descr.PMML pmml,
                              ClassLoader classLoader)
      • getResults

        public List<org.kie.internal.builder.KnowledgeBuilderResult> getResults()
      • clearResults

        public void clearResults()
      • loadModel

        public org.dmg.pmml.pmml_4_2.descr.PMML loadModel​(String model,
                                                          InputStream source)
        Imports a PMML source file, returning a Java descriptor
        Parameters:
        model - the PMML package name (classes derived from a specific schema)
        source - the name of the PMML resource storing the predictive model
        Returns:
        the Java Descriptor of the PMML resource
      • dumpModel

        public static void dumpModel​(org.dmg.pmml.pmml_4_2.descr.PMML model,
                                     OutputStream target)