java.lang.Object
com.pervasive.datarush.analytics.pmml.PMMLModel
com.pervasive.datarush.analytics.pmml.GenericPMMLModel
A pass-through PMML Model. Useful in contexts that don't care about specifics
of the PMML structure.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
PMMLModel.MiningFunction -
Constructor Summary
ConstructorsConstructorDescriptionGenericPMMLModel(Document document) Create a PMMLModel object from a document -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildModelElement(Element element) Subclasses must implement this method to fill-in the contents of the model element.protected ElementfindModelElement(Document document) Subclasses that require custom selection of their model element should override this method.protected StringReturn the element name of the primary model element associated with this PMMLprotected voidparseModelElement(Element element) Parse the given model element into the respective model object.Methods inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
-
Constructor Details
-
GenericPMMLModel
Create a PMMLModel object from a document- Parameters:
document- the pmml document
-
-
Method Details
-
buildModelElement
Description copied from class:PMMLModelSubclasses must implement this method to fill-in the contents of the model element. At the time this method is invoked, the element will have its name and MiningSchema sub-element populated.- Specified by:
buildModelElementin classPMMLModel- Parameters:
element- the model element
-
getModelElementName
Description copied from class:PMMLModelReturn the element name of the primary model element associated with this PMML- Specified by:
getModelElementNamein classPMMLModel- Returns:
- the element name of the primary model element
-
parseModelElement
Description copied from class:PMMLModelParse the given model element into the respective model object.- Specified by:
parseModelElementin classPMMLModel- Parameters:
element- root element of model object
-
findModelElement
Description copied from class:PMMLModelSubclasses that require custom selection of their model element should override this method. By default, we find the first element that matchesthe model element name. In general the default implementation is sufficient; this is primarily intended for PMMLModels whose model element is a PMML extension.- Overrides:
findModelElementin classPMMLModel- Parameters:
document- The PMML document.- Returns:
- The model element.
-