public final class PMMLNaiveBayesModel extends PMMLModel
TargetStatistics
extension in order to support numerical data.PMMLModel.MiningFunction
Constructor and Description |
---|
PMMLNaiveBayesModel(Document document)
Create a PMMLNaiveBayesModel, initialized to the contents of the given PMML document.
|
PMMLNaiveBayesModel(PMMLModelSpec modelSpec)
Create a PMMLNaiveBayesModel for the given spec.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildModelElement(Element element)
Subclasses must implement this method to fill-in the contents
of the model element.
|
Map<String,InputMappingModel> |
getInputMappings()
Gets the map of inputs for the PMML.
|
protected String |
getModelElementName()
Return the element name of the primary model element associated with
this PMML
|
String |
getModelName()
Returns the "modelName" attribute for the model.
|
Map<String,Long> |
getTargetCounts()
Gets the map of target counts for the PMML.
|
double |
getThreshold()
Gets the "threshold" attribute for the model.
|
protected void |
parseModelElement(Element element)
Parse the given model element into the respective model object.
|
void |
setInputMappings(Map<String,InputMappingModel> inputMappings)
Sets the map of inputs for the PMML.
|
void |
setModelName(String modelName)
Sets the "modelName" attribute for the model.
|
void |
setTargetCounts(Map<String,Long> targetCounts)
Sets the map of target counts for the PMML.
|
void |
setThreshold(double threshold)
Sets the "threshold" attribute for the model.
|
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public PMMLNaiveBayesModel(PMMLModelSpec modelSpec)
modelSpec
- The PMMLModelSpecpublic PMMLNaiveBayesModel(Document document)
document
- The PMML document.public void setModelName(String modelName)
modelName
- the "modelName" attribute for the model.public String getModelName()
public void setThreshold(double threshold)
threshold
- the "threshold" attribute for the model.public double getThreshold()
public void setTargetCounts(Map<String,Long> targetCounts)
targetCounts
- the map of target countspublic Map<String,Long> getTargetCounts()
public void setInputMappings(Map<String,InputMappingModel> inputMappings)
inputMappings
- the map of inputspublic Map<String,InputMappingModel> getInputMappings()
protected void buildModelElement(Element element)
PMMLModel
buildModelElement
in class PMMLModel
element
- the model elementprotected void parseModelElement(Element element)
PMMLModel
parseModelElement
in class PMMLModel
element
- root element of model objectprotected String getModelElementName()
PMMLModel
getModelElementName
in class PMMLModel
Copyright © 2020 Actian Corporation. All rights reserved.