public class TreeModelTranslator extends ModelTranslator<org.dmg.pmml.tree.TreeModel>
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_PARENT |
| Constructor and Description |
|---|
TreeModelTranslator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.tree.TreeModel treeModel) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addExtension(org.dmg.pmml.tree.Node node,
String name,
String value) |
static void |
addParentExtension(org.dmg.pmml.tree.Node node,
int parentId) |
static Map<org.dmg.pmml.FieldName,FieldInfo> |
enhanceFieldInfos(Set<? extends org.dmg.pmml.PMMLObject> bodyObjects,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos,
Map<String,ArrayInfo> arrayInfos) |
static void |
ensureTextIndexFields(FieldInfo fieldInfo,
TermFrequencyEncoder encoder,
TranslationContext context) |
static String |
getExtension(org.dmg.pmml.tree.Node node,
String name) |
Map<org.dmg.pmml.FieldName,FieldInfo> |
getFieldInfos(Set<? extends org.dmg.pmml.PMMLObject> bodyObjects) |
com.sun.codemodel.JMethod |
translateClassifier(TranslationContext context) |
static <S> void |
translateNode(org.dmg.pmml.tree.TreeModel treeModel,
org.dmg.pmml.tree.Node node,
List<org.dmg.pmml.tree.Node> dependentNodes,
Scorer<S> scorer,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos,
TranslationContext context) |
static <S> void |
translateNode(org.dmg.pmml.tree.TreeModel treeModel,
org.dmg.pmml.tree.Node root,
Scorer<S> scorer,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos,
TranslationContext context) |
static <S> NodeScope |
translatePredicate(org.dmg.pmml.tree.TreeModel treeModel,
org.dmg.pmml.tree.Node node,
List<org.dmg.pmml.tree.Node> dependentNodes,
Scorer<S> scorer,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos,
TranslationContext context) |
com.sun.codemodel.JMethod |
translateRegressor(TranslationContext context) |
createEvaluateClassificationMethod, createEvaluateMethod, createEvaluateRegressionMethod, createEvaluatorMethod, createEvaluatorMethod, createEvaluatorMethod, createEvaluatorMethodInvocation, declareArrayFields, ensureArgumentsType, getArrayInfos, getFieldInfo, getFieldInfo, getTargetCategories, getValueFactory, translateaddResultFeatures, collectResultFeatures, collectSegmentResultFeatures, createInputFields, createInputFields, createMiningSchemaException, createOutputFields, createTargetFields, filterInputFields, filterOutputFields, filterTargetFields, getActiveFields, getDataField, getDefaultDataField, getDefineFunction, getDerivedField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getPMML, getResultFeatures, getTarget, getTargetField, getTargetFields, getTargetName, getVisibleFields, hasLocalDerivedFields, hasOutputFields, hasResultFeature, resetInputFields, resetResultFields, resolveField, setDefaultDataField, toImmutableListMap, toImmutableMapMap, toImmutableSetMappublic static final String EXTENSION_PARENT
public TreeModelTranslator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.tree.TreeModel treeModel)
public com.sun.codemodel.JMethod translateRegressor(TranslationContext context)
translateRegressor in class ModelTranslator<org.dmg.pmml.tree.TreeModel>public com.sun.codemodel.JMethod translateClassifier(TranslationContext context)
translateClassifier in class ModelTranslator<org.dmg.pmml.tree.TreeModel>public Map<org.dmg.pmml.FieldName,FieldInfo> getFieldInfos(Set<? extends org.dmg.pmml.PMMLObject> bodyObjects)
getFieldInfos in class ModelTranslator<org.dmg.pmml.tree.TreeModel>public static <S> void translateNode(org.dmg.pmml.tree.TreeModel treeModel,
org.dmg.pmml.tree.Node root,
Scorer<S> scorer,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos,
TranslationContext context)
public static <S> void translateNode(org.dmg.pmml.tree.TreeModel treeModel,
org.dmg.pmml.tree.Node node,
List<org.dmg.pmml.tree.Node> dependentNodes,
Scorer<S> scorer,
Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos,
TranslationContext context)
public static <S> NodeScope translatePredicate(org.dmg.pmml.tree.TreeModel treeModel, org.dmg.pmml.tree.Node node, List<org.dmg.pmml.tree.Node> dependentNodes, Scorer<S> scorer, Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos, TranslationContext context)
public static Map<org.dmg.pmml.FieldName,FieldInfo> enhanceFieldInfos(Set<? extends org.dmg.pmml.PMMLObject> bodyObjects, Map<org.dmg.pmml.FieldName,FieldInfo> fieldInfos, Map<String,ArrayInfo> arrayInfos)
public static void ensureTextIndexFields(FieldInfo fieldInfo, TermFrequencyEncoder encoder, TranslationContext context)
public static void addParentExtension(org.dmg.pmml.tree.Node node,
int parentId)
Copyright © 2021. All rights reserved.