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
ClusteringFields of this model. |
Cluster[] |
getClusters()
Gets the
Clusters 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, toPMMLpublic 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()
ClusteringFields of this model.ClusteringFields of this modelpublic MissingValueWeights getMissingValueWeights()
MissingValueWeights of this model.MissingValueWeights of this modelpublic Cluster[] getClusters()
Clusters of this model.Clusters of this modelpublic ComparisonMeasure getComparisonMeasure()
ComparisonMeasure of this model.ComparisonMeasure of this modelprotected void buildModelElement(Element element)
PMMLModelbuildModelElement in class PMMLModelelement - the model elementprotected String getModelElementName()
PMMLModelgetModelElementName in class PMMLModelprotected void parseModelElement(Element element)
PMMLModelparseModelElement in class PMMLModelelement - 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 PMMLModelSpecmodelClass - the ModelClasscomparisonMeasure - the ComparisonMeasureclusters - the ClustersPMMLClusteringModel.BuilderCopyright © 2024 Actian Corporation. All rights reserved.