public class PMML4Compiler extends Object implements org.drools.compiler.compiler.PMMLCompiler
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PMML4Compiler() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String PMML_NAMESPACE
public static final String PMML_DROOLS
public static final String PMML
public static final String SCHEMA_PATH
public static final String BASE_PACK
protected static boolean globalLoaded
protected static final String[] GLOBAL_TEMPLATES
protected static boolean transformationLoaded
protected static final String[] TRANSFORMATION_TEMPLATES
protected static boolean miningLoaded
protected static final String[] MINING_TEMPLATES
protected static boolean neuralLoaded
protected static final String[] NEURAL_TEMPLATES
protected static boolean svmLoaded
protected static final String[] SVM_TEMPLATES
protected static boolean naiveBayesLoaded
protected static final String[] NAIVE_BAYES_TEMPLATES
protected static boolean simpleRegLoaded
protected static final String[] SIMPLEREG_TEMPLATES
protected static boolean clusteringLoaded
protected static final String[] CLUSTERING_TEMPLATES
protected static boolean treeLoaded
protected static final String[] TREE_TEMPLATES
protected static boolean scorecardLoaded
protected static final String[] SCORECARD_TEMPLATES
protected static final String RESOURCE_PATH
protected static final String TEMPLATE_PATH
public PMML4Helper getHelper()
public String compile(String resource, ClassLoader classLoader)
public org.kie.api.io.Resource[] transform(org.kie.api.io.Resource resource, ClassLoader classLoader)
public String compile(InputStream source, ClassLoader classLoader)
compile
in interface org.drools.compiler.compiler.PMMLCompiler
public List<org.kie.internal.builder.KnowledgeBuilderResult> getResults()
getResults
in interface org.drools.compiler.compiler.PMMLCompiler
public void clearResults()
clearResults
in interface org.drools.compiler.compiler.PMMLCompiler
public void dump(String s, OutputStream ostream)
public PMML loadModel(String model, InputStream source)
model
- the PMML package name (classes derived from a specific schema)source
- the name of the PMML resource storing the predictive modelpublic static void dumpModel(PMML model, OutputStream target)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.