public final class PMMLClusteringModel extends PMMLModel
Modifier and Type | Class and Description |
---|---|
static class |
PMMLClusteringModel.Builder
Builder for
PMMLClusteringModel instances. |
PMMLModel.MiningFunction
Constructor and Description |
---|
PMMLClusteringModel(Document document)
Create a
PMMLClusteringModel out of an PMML document |
Modifier and Type | Method and Description |
---|---|
static PMMLClusteringModel.Builder |
builder(PMMLModelSpec spec,
ModelClass modelClass,
ComparisonMeasure comparisonMeasure,
Cluster[] clusters)
Creates a builder that builds
PMMLClusteringModel
instances with the provided model specification, model class,
comparison measure and clusters. |
protected void |
buildModelElement(Element element)
Subclasses must implement this method to fill-in the contents
of the model element.
|
String |
getAlgorithmName()
Gets the name of the algorithm used to create this model
|
ClusteringField[] |
getClusteringFields()
Gets the
ClusteringField s of this model. |
Cluster[] |
getClusters()
Gets the
Cluster s of this model. |
ComparisonMeasure |
getComparisonMeasure()
Gets the
ComparisonMeasure of this model. |
MissingValueWeights |
getMissingValueWeights()
Gets the
MissingValueWeights of this model. |
ModelClass |
getModelClass()
Get the
ModelClass of this model. |
protected String |
getModelElementName()
Return the element name of the primary model element associated with
this PMML
|
String |
getModelName()
Gets the name of this model.
|
boolean |
isScorable()
Gets whether this model is scorable.
|
protected void |
parseModelElement(Element element)
Parse the given model element into the respective model object.
|
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public PMMLClusteringModel(Document document)
PMMLClusteringModel
out of an PMML documentdocument
- the document containing the PMML modelpublic String getModelName()
public String getAlgorithmName()
public ModelClass getModelClass()
ModelClass
of this model.ModelClass
of this modelpublic boolean isScorable()
public ClusteringField[] getClusteringFields()
ClusteringField
s of this model.ClusteringField
s of this modelpublic MissingValueWeights getMissingValueWeights()
MissingValueWeights
of this model.MissingValueWeights
of this modelpublic Cluster[] getClusters()
Cluster
s of this model.Cluster
s of this modelpublic ComparisonMeasure getComparisonMeasure()
ComparisonMeasure
of this model.ComparisonMeasure
of this modelprotected 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 objectpublic static PMMLClusteringModel.Builder builder(PMMLModelSpec spec, ModelClass modelClass, ComparisonMeasure comparisonMeasure, Cluster[] clusters)
PMMLClusteringModel
instances with the provided model specification, model class,
comparison measure and clusters. For other parameters defaults,
will be used: the model will be scorable, have no name or
algorithm name, no clustering fields, and its missing value
weights element will have an empty weights array.spec
- the PMMLModelSpec
modelClass
- the ModelClass
comparisonMeasure
- the ComparisonMeasure
clusters
- the Cluster
sPMMLClusteringModel.Builder
Copyright © 2016 Actian Corporation. All rights reserved.