public abstract class AbstractModel<T> extends Object implements PMML4Model
| Modifier and Type | Field and Description |
|---|---|
protected List<ExternalBeanRef> |
externalMiningFields |
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) |
| Modifier and Type | Method and Description |
|---|---|
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 org.mvel2.templates.TemplateRegistry |
addTemplateToRegistry(String templateId,
String templatePath,
org.mvel2.templates.TemplateRegistry registry) |
PMMLMiningField |
findMiningField(String fieldName) |
PMMLOutputField |
findOutputField(String fieldName) |
List<PMMLMiningField> |
getActiveMiningFields() |
Map<String,PMML4Model> |
getChildModels()
Default method returns an empty Map
|
org.dmg.pmml.pmml_4_2.descr.DataDictionary |
getDataDictionary() |
String |
getExternalBeansMiningRules() |
protected org.dmg.pmml.pmml_4_2.descr.Extension |
getExternalClassInfo(List<org.dmg.pmml.pmml_4_2.descr.Extension> extensions) |
protected List<ExternalBeanDefinition> |
getExternalMiningClasses() |
List<ExternalBeanRef> |
getExternalMiningFields() |
Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> |
getFilteredMiningFieldMap(boolean includeFiltered,
org.dmg.pmml.pmml_4_2.descr.FIELDUSAGETYPE... filterTypes) |
Map.Entry<String,String> |
getMappedMiningPojo() |
Map.Entry<String,String> |
getMappedOutputPojo() |
Map.Entry<String,String> |
getMappedRuleUnit() |
Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> |
getMiningFieldMap() |
List<PMMLMiningField> |
getMiningFields() |
protected String |
getMiningPojoTemplateName() |
String |
getModelId() |
String |
getModelPackageName() |
String |
getModelRuleUnitName() |
PMML4ModelType |
getModelType() |
Map<String,org.dmg.pmml.pmml_4_2.descr.OutputField> |
getOutputFieldMap() |
List<PMMLOutputField> |
getOutputFields() |
protected String |
getOutputPojoTemplateName() |
Map<String,String> |
getOutputTargetPojos() |
PMML4Unit |
getOwner() |
PMML4Model |
getParentModel() |
List<org.dmg.pmml.pmml_4_2.descr.MiningField> |
getRawMiningFields() |
Serializable |
getRawModel() |
List<org.dmg.pmml.pmml_4_2.descr.OutputField> |
getRawOutputFields() |
protected String |
getRuleUnitTemplateName() |
protected org.dmg.pmml.pmml_4_2.descr.MiningField |
getValidMiningField(PMMLDataField dataField) |
protected void |
initFieldMaps() |
protected void |
initMiningFieldMap() |
protected void |
initOutputFieldMap() |
protected boolean |
isUseExternalBeanRefs(org.dmg.pmml.pmml_4_2.descr.MiningSchema schema) |
void |
setParentModel(PMML4Model parentModel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMiningPojoClassName, getMiningSchema, getOutput, getOutputPojoClassName, getRuleUnitClassNameprotected T rawModel
protected List<ExternalBeanRef> externalMiningFields
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()
throws IllegalArgumentException
IllegalArgumentExceptionprotected void initMiningFieldMap()
throws IllegalArgumentException
IllegalArgumentExceptionprotected boolean isUseExternalBeanRefs(org.dmg.pmml.pmml_4_2.descr.MiningSchema schema)
protected org.dmg.pmml.pmml_4_2.descr.Extension getExternalClassInfo(List<org.dmg.pmml.pmml_4_2.descr.Extension> extensions)
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 PMML4Modelpublic Map.Entry<String,String> getMappedMiningPojo()
getMappedMiningPojo in interface PMML4Modelpublic Map.Entry<String,String> getMappedOutputPojo()
getMappedOutputPojo in interface PMML4Modelprotected List<ExternalBeanDefinition> getExternalMiningClasses()
public List<ExternalBeanRef> getExternalMiningFields()
public String getExternalBeansMiningRules()
getExternalBeansMiningRules in interface PMML4Modelpublic Map.Entry<String,String> getMappedRuleUnit() throws PMML4Exception
getMappedRuleUnit in interface PMML4ModelPMML4Exceptionpublic List<PMMLMiningField> getMiningFields()
getMiningFields in interface PMML4Modelpublic PMMLMiningField findMiningField(String fieldName)
findMiningField in interface PMML4Modelpublic PMMLOutputField findOutputField(String fieldName)
findOutputField in interface PMML4Modelpublic List<PMMLOutputField> getOutputFields()
getOutputFields in interface PMML4Modelpublic PMML4ModelType getModelType()
getModelType in interface PMML4Modelpublic String getModelId()
getModelId in interface PMML4Modelpublic PMML4Unit getOwner()
getOwner in interface PMML4Modelpublic List<org.dmg.pmml.pmml_4_2.descr.MiningField> getRawMiningFields()
getRawMiningFields in interface PMML4Modelpublic List<org.dmg.pmml.pmml_4_2.descr.OutputField> getRawOutputFields()
getRawOutputFields in interface PMML4Modelpublic Map<String,String> getOutputTargetPojos() throws PMML4Exception
getOutputTargetPojos in interface PMML4ModelPMML4Exceptionpublic Map<String,PMML4Model> getChildModels()
getChildModels in interface PMML4Modelpublic PMML4Model getParentModel()
getParentModel in interface PMML4Modelpublic void setParentModel(PMML4Model parentModel)
setParentModel in interface PMML4Modelpublic 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 PMML4Modelpublic org.dmg.pmml.pmml_4_2.descr.DataDictionary getDataDictionary()
getDataDictionary in interface PMML4Modelpublic Serializable getRawModel()
getRawModel in interface PMML4ModelCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.