Class PMMLClusteringModel


  • public final class PMMLClusteringModel
    extends PMMLModel
    PMML clustering model. This model uses the standard PMML Clustering model.
    • Constructor Detail

      • PMMLClusteringModel

        public PMMLClusteringModel​(Document document)
        Create a PMMLClusteringModel out of an PMML document
        Parameters:
        document - the document containing the PMML model
    • Method Detail

      • getModelName

        public String getModelName()
        Gets the name of this model.
        Returns:
        the name of this model
      • getAlgorithmName

        public String getAlgorithmName()
        Gets the name of the algorithm used to create this model
        Returns:
        the name of the algorithm used to create this model
      • isScorable

        public boolean isScorable()
        Gets whether this model is scorable.
        Returns:
        true, if the model is scorable, false otherwise
      • getClusters

        public Cluster[] getClusters()
        Gets the Clusters of this model.
        Returns:
        the Clusters of this model
      • buildModelElement

        protected void buildModelElement​(Element element)
        Description copied from class: PMMLModel
        Subclasses 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:
        buildModelElement in class PMMLModel
        Parameters:
        element - the model element
      • getModelElementName

        protected String getModelElementName()
        Description copied from class: PMMLModel
        Return the element name of the primary model element associated with this PMML
        Specified by:
        getModelElementName in class PMMLModel
        Returns:
        the element name of the primary model element
      • parseModelElement

        protected void parseModelElement​(Element element)
        Description copied from class: PMMLModel
        Parse the given model element into the respective model object.
        Specified by:
        parseModelElement in class PMMLModel
        Parameters:
        element - root element of model object