public abstract class AbstractModel<T> extends Object implements PMML4Model
Modifier and Type | Field and Description |
---|---|
protected static PMML4Helper |
helper |
protected static String |
MINING_TEMPLATE_NAME |
protected Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> |
miningFieldMap |
protected static String |
OUTPUT_TEMPLATE_NAME |
protected Map<String,org.dmg.pmml.pmml_4_2.descr.OutputField> |
outputFieldMap |
static String |
PMML_JAVA_PACKAGE_NAME |
protected T |
rawModel |
protected static String |
RULE_UNIT_TEMPLATE_NAME |
protected static org.mvel2.templates.TemplateRegistry |
templateRegistry |
Constructor and Description |
---|
AbstractModel(String modelId,
PMML4ModelType modelType,
PMML4Unit owner,
PMML4Model parentModel,
T rawModel) |
AbstractModel(String modelId,
PMML4ModelType modelType,
PMML4Unit owner,
T rawModel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMiningPojoClassName, getMiningSchema, getOutput, getOutputPojoClassName, getRuleUnitClassName
protected T rawModel
protected static PMML4Helper helper
protected static final String MINING_TEMPLATE_NAME
protected static final String OUTPUT_TEMPLATE_NAME
protected static final String RULE_UNIT_TEMPLATE_NAME
protected static org.mvel2.templates.TemplateRegistry templateRegistry
public static final String PMML_JAVA_PACKAGE_NAME
public AbstractModel(String modelId, PMML4ModelType modelType, PMML4Unit owner, T rawModel)
public AbstractModel(String modelId, PMML4ModelType modelType, PMML4Unit owner, PMML4Model parentModel, T rawModel)
protected abstract void addMiningTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
protected abstract void addOutputTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
protected abstract void addRuleUnitTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
protected void initFieldMaps()
protected void initMiningFieldMap()
protected void initOutputFieldMap()
protected org.dmg.pmml.pmml_4_2.descr.MiningField getValidMiningField(PMMLDataField dataField)
protected String getMiningPojoTemplateName()
protected String getOutputPojoTemplateName()
protected String getRuleUnitTemplateName()
public String getModelPackageName()
getModelPackageName
in interface PMML4Model
public Map.Entry<String,String> getMappedMiningPojo()
getMappedMiningPojo
in interface PMML4Model
public Map.Entry<String,String> getMappedOutputPojo()
getMappedOutputPojo
in interface PMML4Model
public Map.Entry<String,String> getMappedRuleUnit()
getMappedRuleUnit
in interface PMML4Model
public List<PMMLMiningField> getMiningFields()
getMiningFields
in interface PMML4Model
public PMMLOutputField findOutputField(String fieldName)
public List<PMMLOutputField> getOutputFields()
getOutputFields
in interface PMML4Model
public PMML4ModelType getModelType()
getModelType
in interface PMML4Model
public String getModelId()
getModelId
in interface PMML4Model
public PMML4Unit getOwner()
getOwner
in interface PMML4Model
public List<org.dmg.pmml.pmml_4_2.descr.MiningField> getRawMiningFields()
getRawMiningFields
in interface PMML4Model
public List<org.dmg.pmml.pmml_4_2.descr.OutputField> getRawOutputFields()
getRawOutputFields
in interface PMML4Model
public Map<String,PMML4Model> getChildModels()
getChildModels
in interface PMML4Model
public PMML4Model getParentModel()
getParentModel
in interface PMML4Model
public void setParentModel(PMML4Model parentModel)
setParentModel
in interface PMML4Model
public Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> getFilteredMiningFieldMap(boolean includeFiltered, org.dmg.pmml.pmml_4_2.descr.FIELDUSAGETYPE... filterTypes)
public List<PMMLMiningField> getActiveMiningFields()
public String getModelRuleUnitName()
getModelRuleUnitName
in interface PMML4Model
public org.dmg.pmml.pmml_4_2.descr.DataDictionary getDataDictionary()
getDataDictionary
in interface PMML4Model
public Serializable getRawModel()
getRawModel
in interface PMML4Model
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.