public abstract class ModelTranslator<M extends org.dmg.pmml.Model> extends Object implements org.jpmml.evaluator.HasPMML, org.jpmml.evaluator.HasModel<M>
| Modifier and Type | Field and Description |
|---|---|
static int |
MEMBER_PRIVATE |
static int |
MEMBER_PUBLIC |
| Constructor and Description |
|---|
ModelTranslator(org.dmg.pmml.PMML pmml,
M model) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JMethod |
createEvaluateClassificationMethod(com.sun.codemodel.JMethod evaluateMethod,
TranslationContext context) |
void |
createEvaluateMethod(TranslationContext context) |
com.sun.codemodel.JMethod |
createEvaluateRegressionMethod(com.sun.codemodel.JMethod evaluateMethod,
TranslationContext context) |
static com.sun.codemodel.JMethod |
createEvaluatorMethod(Class<?> type,
List<? extends org.dmg.pmml.PMMLObject> objects,
boolean withValueFactory,
TranslationContext context) |
static com.sun.codemodel.JMethod |
createEvaluatorMethod(Class<?> type,
org.dmg.pmml.PMMLObject object,
boolean withValueFactory,
TranslationContext context) |
static com.sun.codemodel.JMethod |
createEvaluatorMethod(String name,
TranslationContext context) |
static com.sun.codemodel.JInvocation |
createEvaluatorMethodInvocation(com.sun.codemodel.JMethod method,
TranslationContext context) |
static com.sun.codemodel.JDefinedClass |
ensureArgumentsType(TranslationContext context) |
static FieldInfo |
getFieldInfo(org.dmg.pmml.FieldName name,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos) |
static FieldInfo |
getFieldInfo(org.dmg.pmml.HasFieldReference<?> hasFieldReference,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos) |
Map<org.dmg.pmml.FieldName,FieldInfo> |
getFieldInfos(Set<? extends org.dmg.pmml.PMMLObject> bodyObjects) |
M |
getModel() |
org.dmg.pmml.PMML |
getPMML() |
String[] |
getTargetCategories() |
org.jpmml.evaluator.TargetField |
getTargetField() |
static <V extends Number> |
getValueFactory(org.dmg.pmml.Model model) |
com.sun.codemodel.JExpression |
translate(TranslationContext context) |
com.sun.codemodel.JMethod |
translateClassifier(TranslationContext context) |
com.sun.codemodel.JMethod |
translateRegressor(TranslationContext context) |
public static final int MEMBER_PUBLIC
public static final int MEMBER_PRIVATE
public ModelTranslator(org.dmg.pmml.PMML pmml,
M model)
public com.sun.codemodel.JExpression translate(TranslationContext context)
public void createEvaluateMethod(TranslationContext context)
public com.sun.codemodel.JMethod translateRegressor(TranslationContext context)
public com.sun.codemodel.JMethod translateClassifier(TranslationContext context)
public com.sun.codemodel.JMethod createEvaluateRegressionMethod(com.sun.codemodel.JMethod evaluateMethod,
TranslationContext context)
public com.sun.codemodel.JMethod createEvaluateClassificationMethod(com.sun.codemodel.JMethod evaluateMethod,
TranslationContext context)
public Map<org.dmg.pmml.FieldName,FieldInfo> getFieldInfos(Set<? extends org.dmg.pmml.PMMLObject> bodyObjects)
public String[] getTargetCategories()
public org.jpmml.evaluator.TargetField getTargetField()
public org.dmg.pmml.PMML getPMML()
getPMML in interface org.jpmml.evaluator.HasPMMLpublic M getModel()
getModel in interface org.jpmml.evaluator.HasModel<M extends org.dmg.pmml.Model>public static <V extends Number> org.jpmml.evaluator.ValueFactory<V> getValueFactory(org.dmg.pmml.Model model)
public static FieldInfo getFieldInfo(org.dmg.pmml.HasFieldReference<?> hasFieldReference, Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos)
public static FieldInfo getFieldInfo(org.dmg.pmml.FieldName name, Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos)
public static com.sun.codemodel.JMethod createEvaluatorMethod(String name, TranslationContext context)
public static com.sun.codemodel.JMethod createEvaluatorMethod(Class<?> type, org.dmg.pmml.PMMLObject object, boolean withValueFactory, TranslationContext context)
public static com.sun.codemodel.JMethod createEvaluatorMethod(Class<?> type, List<? extends org.dmg.pmml.PMMLObject> objects, boolean withValueFactory, TranslationContext context)
public static com.sun.codemodel.JInvocation createEvaluatorMethodInvocation(com.sun.codemodel.JMethod method,
TranslationContext context)
public static com.sun.codemodel.JDefinedClass ensureArgumentsType(TranslationContext context)
Copyright © 2020. All rights reserved.