Drools :: PMML - Compiler 6.2.0.CR3

org.drools.pmml.pmml_4_2
Class PMML4Compiler

java.lang.Object
  extended by org.drools.pmml.pmml_4_2.PMML4Compiler
All Implemented Interfaces:
org.drools.compiler.compiler.PMMLCompiler, org.kie.api.Service

public class PMML4Compiler
extends Object
implements org.drools.compiler.compiler.PMMLCompiler


Field Summary
static String BASE_PACK
           
protected static String[] CLUSTERING_TEMPLATES
           
protected static boolean clusteringLoaded
           
protected static String[] GLOBAL_TEMPLATES
           
protected static boolean globalLoaded
           
protected static String[] MINING_TEMPLATES
           
protected static boolean miningLoaded
           
protected static String[] NAIVE_BAYES_TEMPLATES
           
protected static boolean naiveBayesLoaded
           
protected static String[] NEURAL_TEMPLATES
           
protected static boolean neuralLoaded
           
static String PMML
           
static String PMML_DROOLS
           
static String PMML_NAMESPACE
           
protected static String RESOURCE_PATH
           
static String SCHEMA_PATH
           
protected static String[] SCORECARD_TEMPLATES
           
protected static boolean scorecardLoaded
           
protected static String[] SIMPLEREG_TEMPLATES
           
protected static boolean simpleRegLoaded
           
protected static String[] SVM_TEMPLATES
           
protected static boolean svmLoaded
           
protected static String TEMPLATE_PATH
           
protected static String[] TRANSFORMATION_TEMPLATES
           
protected static boolean transformationLoaded
           
protected static String[] TREE_TEMPLATES
           
protected static boolean treeLoaded
           
 
Constructor Summary
PMML4Compiler()
           
 
Method Summary
 void clearResults()
           
 String compile(InputStream source, ClassLoader classLoader)
           
 String compile(String resource, ClassLoader classLoader)
           
 void dump(String s, OutputStream ostream)
           
static void dumpModel(PMML model, OutputStream target)
           
 String generateTheory(PMML pmml)
           
 PMML4Helper getHelper()
           
 List<org.kie.internal.builder.KnowledgeBuilderResult> getResults()
           
 PMML loadModel(String model, InputStream source)
          Imports a PMML source file, returning a Java descriptor
 org.kie.api.io.Resource[] transform(org.kie.api.io.Resource resource, ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PMML_NAMESPACE

public static final String PMML_NAMESPACE
See Also:
Constant Field Values

PMML_DROOLS

public static final String PMML_DROOLS
See Also:
Constant Field Values

PMML

public static final String PMML
See Also:
Constant Field Values

SCHEMA_PATH

public static final String SCHEMA_PATH
See Also:
Constant Field Values

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

getHelper

public PMML4Helper getHelper()

generateTheory

public String generateTheory(PMML pmml)

compile

public String compile(String resource,
                      ClassLoader classLoader)

transform

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

compile

public String compile(InputStream source,
                      ClassLoader classLoader)
Specified by:
compile in interface org.drools.compiler.compiler.PMMLCompiler

getResults

public List<org.kie.internal.builder.KnowledgeBuilderResult> getResults()
Specified by:
getResults in interface org.drools.compiler.compiler.PMMLCompiler

clearResults

public void clearResults()
Specified by:
clearResults in interface org.drools.compiler.compiler.PMMLCompiler

dump

public void dump(String s,
                 OutputStream ostream)

loadModel

public 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(PMML model,
                             OutputStream target)

Drools :: PMML - Compiler 6.2.0.CR3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.