PMMLModel.MiningFunction
Constructor and Description |
---|
PMMLSummaryStatisticsModel(Document document)
Create a PMMLSummaryStatisticsModel, initialized to the contents of the given PMML document.
|
PMMLSummaryStatisticsModel(PMMLModelSpec modelSpec)
Create a PMMLSummaryStatisticsModel for the given spec.
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldStats(UnivariateStats fieldStats) |
void |
addTotalStat(String name,
Long count) |
protected void |
buildModelElement(Element modelElement)
Subclasses must implement this method to fill-in the contents
of the model element.
|
protected Element |
findModelElement(Document document)
Subclasses that require custom selection of their model element should override
this method.
|
BivariateStats |
getBivariateStats()
Returns the bivariate statistics for this model
|
UnivariateStats |
getFieldStats(String fieldName)
Returns the UnivariateStats element for the given field
|
Map<String,UnivariateStats> |
getFieldStatsMap()
Returns the mapping of UnivariateStats elements.
|
protected String |
getModelElementName()
Return the element name of the primary model element associated with
this PMML
|
Map<String,Long> |
getTotalStatsMap()
Returns a mapping of the total counts for the fields.
|
protected void |
parseModelElement(Element modelElement)
Parse the given model element into the respective model object.
|
void |
setBivariateStats(BivariateStats bivariateStats)
Set the bivariate statistics for this model
|
getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public PMMLSummaryStatisticsModel(PMMLModelSpec modelSpec)
modelSpec
- The PMMLModelSpecpublic PMMLSummaryStatisticsModel(Document document)
document
- The PMML document.public UnivariateStats getFieldStats(String fieldName)
fieldName
- the name of the fieldpublic Map<String,UnivariateStats> getFieldStatsMap()
public Map<String,Long> getTotalStatsMap()
public BivariateStats getBivariateStats()
public void setBivariateStats(BivariateStats bivariateStats)
bivariateStats
- the bivariate statisticsprotected String getModelElementName()
PMMLModel
getModelElementName
in class PMMLModel
protected void buildModelElement(Element modelElement)
PMMLModel
buildModelElement
in class PMMLModel
modelElement
- the model elementprotected void parseModelElement(Element modelElement)
PMMLModel
parseModelElement
in class PMMLModel
modelElement
- root element of model objectprotected Element findModelElement(Document document)
PMMLModel
the model
element name
. In general the default implementation is sufficient; this is
primarily intended for PMMLModels whose model element is a PMML extension.findModelElement
in class PMMLModel
document
- The PMML document.public void addFieldStats(UnivariateStats fieldStats)
Copyright © 2016 Actian Corporation. All rights reserved.