Package org.kie.pmml.pmml_4_2.model
Class Miningmodel
- java.lang.Object
-
- org.kie.pmml.pmml_4_2.model.AbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
- org.kie.pmml.pmml_4_2.model.Miningmodel
-
- All Implemented Interfaces:
PMML4Model
public class Miningmodel extends AbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
-
Field Summary
-
Fields inherited from class org.kie.pmml.pmml_4_2.model.AbstractModel
externalMiningFields, helper, MINING_TEMPLATE_NAME, miningFieldMap, OUTPUT_TEMPLATE_NAME, outputFieldMap, PMML_JAVA_PACKAGE_NAME, rawModel, RULE_UNIT_TEMPLATE_NAME, templateRegistry
-
-
Constructor Summary
Constructors Constructor Description Miningmodel(String modelId, org.dmg.pmml.pmml_4_2.descr.MiningModel model, PMML4Model parentModel, PMML4Unit owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMiningTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)protected voidaddOutputTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)protected voidaddRuleUnitTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)PMMLOutputFieldfindOutputField(String fieldName)StringgenerateRules()StringgetAlgorithmName()Map<String,PMML4Model>getChildModels()Default method returns an empty Maporg.dmg.pmml.pmml_4_2.descr.MININGFUNCTIONgetFunctionName()List<PMMLMiningField>getMiningFields()StringgetMiningPojoClassName()org.dmg.pmml.pmml_4_2.descr.MiningSchemagetMiningSchema()org.dmg.pmml.pmml_4_2.descr.OutputgetOutput()StringgetOutputPojoClassName()StringgetRuleUnitClassName()MiningSegmentationgetSegmentation()StringgetTargetField()protected voidinitChildModels()booleanisScoreable()voidsetAlgorithmName(String algorithmName)voidsetFunctionName(org.dmg.pmml.pmml_4_2.descr.MININGFUNCTION functionName)voidsetScoreable(boolean scoreable)-
Methods inherited from class org.kie.pmml.pmml_4_2.model.AbstractModel
addTemplateToRegistry, findMiningField, getActiveMiningFields, getDataDictionary, getExternalBeansMiningRules, getExternalClassInfo, getExternalMiningClasses, getExternalMiningFields, getFilteredMiningFieldMap, getMappedMiningPojo, getMappedOutputPojo, getMappedRuleUnit, getMiningFieldMap, getMiningPojoTemplateName, getModelId, getModelPackageName, getModelRuleUnitName, getModelType, getOutputFieldMap, getOutputFields, getOutputPojoTemplateName, getOutputTargetPojos, getOwner, getParentModel, getRawMiningFields, getRawModel, getRawOutputFields, getRuleUnitTemplateName, getValidMiningField, initFieldMaps, initMiningFieldMap, initOutputFieldMap, isUseExternalBeanRefs, setParentModel
-
-
-
-
Constructor Detail
-
Miningmodel
public Miningmodel(String modelId, org.dmg.pmml.pmml_4_2.descr.MiningModel model, PMML4Model parentModel, PMML4Unit owner)
-
-
Method Detail
-
getChildModels
public Map<String,PMML4Model> getChildModels()
Description copied from class:AbstractModelDefault method returns an empty Map- Specified by:
getChildModelsin interfacePMML4Model- Overrides:
getChildModelsin classAbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
initChildModels
protected void initChildModels()
-
getTargetField
public String getTargetField()
-
findOutputField
public PMMLOutputField findOutputField(String fieldName)
- Specified by:
findOutputFieldin interfacePMML4Model- Overrides:
findOutputFieldin classAbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
getMiningFields
public List<PMMLMiningField> getMiningFields()
- Specified by:
getMiningFieldsin interfacePMML4Model- Overrides:
getMiningFieldsin classAbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
getMiningPojoClassName
public String getMiningPojoClassName()
-
getOutputPojoClassName
public String getOutputPojoClassName()
-
getRuleUnitClassName
public String getRuleUnitClassName()
-
getMiningSchema
public org.dmg.pmml.pmml_4_2.descr.MiningSchema getMiningSchema()
-
getOutput
public org.dmg.pmml.pmml_4_2.descr.Output getOutput()
-
addMiningTemplateToRegistry
protected void addMiningTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
- Specified by:
addMiningTemplateToRegistryin classAbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
addOutputTemplateToRegistry
protected void addOutputTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
- Specified by:
addOutputTemplateToRegistryin classAbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
addRuleUnitTemplateToRegistry
protected void addRuleUnitTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
- Specified by:
addRuleUnitTemplateToRegistryin classAbstractModel<org.dmg.pmml.pmml_4_2.descr.MiningModel>
-
getFunctionName
public org.dmg.pmml.pmml_4_2.descr.MININGFUNCTION getFunctionName()
-
setFunctionName
public void setFunctionName(org.dmg.pmml.pmml_4_2.descr.MININGFUNCTION functionName)
-
getAlgorithmName
public String getAlgorithmName()
-
setAlgorithmName
public void setAlgorithmName(String algorithmName)
-
isScoreable
public boolean isScoreable()
-
setScoreable
public void setScoreable(boolean scoreable)
-
getSegmentation
public MiningSegmentation getSegmentation()
-
generateRules
public String generateRules()
-
-