public final class GenericPMMLModel extends PMMLModel
PMMLModel.MiningFunction
Constructor and Description |
---|
GenericPMMLModel(Document document)
Create a PMMLModel object from a document
|
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.
|
protected Element |
findModelElement(Document document)
Subclasses that require custom selection of their model element should override
this method.
|
protected String |
getModelElementName()
Return the element name of the primary model element associated with
this PMML
|
protected void |
parseModelElement(Element element)
Parse the given model element into the respective model object.
|
getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public GenericPMMLModel(Document document)
document
- the pmml documentprotected void buildModelElement(Element element)
PMMLModel
buildModelElement
in class PMMLModel
element
- the model elementprotected String getModelElementName()
PMMLModel
getModelElementName
in class PMMLModel
protected void parseModelElement(Element element)
PMMLModel
parseModelElement
in class PMMLModel
element
- 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.Copyright © 2016 Actian Corporation. All rights reserved.