public class PMML4Helper extends Object
Constructor and Description |
---|
PMML4Helper() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String a,
String v) |
void |
addModelBeanDefinition(String beanType) |
void |
applyTemplate(String templateName,
Object context,
org.mvel2.templates.TemplateRegistry registry,
Map vars,
StringBuilder builder) |
String |
box(String s) |
String |
capitalize(String s) |
String |
compactAsJavaId(String s) |
String |
compactAsJavaId(String s,
boolean forceCapital) |
String |
compactUpperCase(String s) |
Object |
copy(Object orig)
Returns a copy of the object, or null if the object cannot
be serialized.
|
String |
createPartialScoreFormula(org.dmg.pmml.pmml_4_2.descr.Attribute attribute) |
String |
evaluateDistribution(String x,
String type) |
String |
extractDistributionParameters(Object d) |
String |
format(org.dmg.pmml.pmml_4_2.descr.DataField fld,
String val) |
String |
format(org.dmg.pmml.pmml_4_2.descr.DataField fld,
org.dmg.pmml.pmml_4_2.descr.Value val) |
String |
format(org.dmg.pmml.pmml_4_2.descr.DATATYPE type,
String val) |
String |
format(String type,
Number val) |
String |
format(String type,
String val) |
String |
format(String type,
org.dmg.pmml.pmml_4_2.descr.Value val) |
Map<String,Object> |
getContainer() |
String |
getContext() |
String |
getPack() |
String |
getPmmlPackageName() |
String |
getPredicate(org.dmg.pmml.pmml_4_2.descr.Attribute attrib) |
String |
getPredicate(org.dmg.pmml.pmml_4_2.descr.Node node) |
ClassLoader |
getResolver() |
String |
getToken(String s,
int j) |
boolean |
isBuiltIn(String functor) |
boolean |
isInnerFieldName(String name) |
boolean |
isModelBeanDefined(String beanType) |
boolean |
isWeighted(String strat) |
String |
lowerCase(String s) |
String |
mapComparisonFunction(org.dmg.pmml.pmml_4_2.descr.COMPAREFUNCTION fun,
String arg1,
String arg2,
String scope,
String local) |
String |
mapDatatype(org.dmg.pmml.pmml_4_2.descr.DATATYPE datatype) |
String |
mapDatatype(org.dmg.pmml.pmml_4_2.descr.DATATYPE datatype,
boolean box) |
String |
mapDatatypeToQuestion(org.dmg.pmml.pmml_4_2.descr.DATATYPE datatype) |
org.dmg.pmml.pmml_4_2.descr.DATATYPE |
mapFeatureType(org.dmg.pmml.pmml_4_2.descr.DATATYPE srcType,
org.dmg.pmml.pmml_4_2.descr.RESULTFEATURE feat) |
String |
mapFunction(String functor,
boolean asQuery,
String... args) |
String |
mapFunction(String functor,
List args) |
String |
mapFunction(String functor,
String... args) |
String |
mapFunctionAsQuery(String functor,
List args) |
String |
mapFunctionAsQuery(String functor,
String... args) |
String |
mapNeuralActivation(String functor,
double threshold) |
String |
mapOperator(String op) |
String |
mapRegModelClassificationNormalization(String method,
String arg) |
String |
mapRegModelRegressionNormalization(String method,
String arg) |
String |
mapTreeOp(String op) |
String |
mapWeightStrategy(String strat) |
int |
nextCount() |
String |
nextInnerFieldName() |
String |
numberFromNumber(String obj,
String datatype) |
String[] |
ones(Integer num) |
static String |
pmmlDefaultPackageName() |
void |
reset() |
static AggregationStrategy |
resolveAggregationStrategy(String strat) |
void |
setContext(String context) |
void |
setPack(String packageName) |
void |
setResolver(ClassLoader resolver) |
String |
streamInputType(String s) |
String[] |
tokenize(String s) |
String[] |
tokenize(String s,
String delimiters) |
String |
zeroForDatatype(org.dmg.pmml.pmml_4_2.descr.DATATYPE type) |
String |
zeroForDatatype(String type) |
public int nextCount()
public String nextInnerFieldName()
public boolean isInnerFieldName(String name)
public static String pmmlDefaultPackageName()
public String getPmmlPackageName()
public String getContext()
public void setContext(String context)
public void addModelBeanDefinition(String beanType)
public ClassLoader getResolver()
public void setResolver(ClassLoader resolver)
public String createPartialScoreFormula(org.dmg.pmml.pmml_4_2.descr.Attribute attribute)
public boolean isModelBeanDefined(String beanType)
public String getPredicate(org.dmg.pmml.pmml_4_2.descr.Node node)
public void applyTemplate(String templateName, Object context, org.mvel2.templates.TemplateRegistry registry, Map vars, StringBuilder builder)
public String getPack()
public void setPack(String packageName)
public Object copy(Object orig)
public String mapDatatype(org.dmg.pmml.pmml_4_2.descr.DATATYPE datatype)
public String mapDatatype(org.dmg.pmml.pmml_4_2.descr.DATATYPE datatype, boolean box)
public String format(org.dmg.pmml.pmml_4_2.descr.DataField fld, org.dmg.pmml.pmml_4_2.descr.Value val)
public String zeroForDatatype(org.dmg.pmml.pmml_4_2.descr.DATATYPE type)
public boolean isBuiltIn(String functor)
public String mapRegModelRegressionNormalization(String method, String arg)
public String mapRegModelClassificationNormalization(String method, String arg)
public String getPredicate(org.dmg.pmml.pmml_4_2.descr.Attribute attrib)
public String mapComparisonFunction(org.dmg.pmml.pmml_4_2.descr.COMPAREFUNCTION fun, String arg1, String arg2, String scope, String local)
public String mapDatatypeToQuestion(org.dmg.pmml.pmml_4_2.descr.DATATYPE datatype)
public org.dmg.pmml.pmml_4_2.descr.DATATYPE mapFeatureType(org.dmg.pmml.pmml_4_2.descr.DATATYPE srcType, org.dmg.pmml.pmml_4_2.descr.RESULTFEATURE feat)
public void reset()
public static AggregationStrategy resolveAggregationStrategy(String strat)
public boolean isWeighted(String strat)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.