Package org.tribuo.clustering.hdbscan
Class HdbscanTrainer.ClusterExemplar
java.lang.Object
org.tribuo.clustering.hdbscan.HdbscanTrainer.ClusterExemplar
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HdbscanTrainer
A cluster exemplar, with attributes for the point's label, outlier score and its features.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies this cluster exemplar.boolean
Get the feature vector in this exemplar.getLabel()
Get the label in this exemplar.Get the maximum distance from this exemplar to the edge of the cluster.Get the outlier score in this exemplar.int
hashCode()
toString()
-
Method Details
-
getLabel
Get the label in this exemplar.- Returns:
- The label.
-
getOutlierScore
Get the outlier score in this exemplar.- Returns:
- The outlier score.
-
getFeatures
Get the feature vector in this exemplar.- Returns:
- The feature vector.
-
getMaxDistToEdge
Get the maximum distance from this exemplar to the edge of the cluster.For models trained in 4.2 this will return
Double.NEGATIVE_INFINITY
as that information is not produced by 4.2 models.- Returns:
- The distance to the edge of the cluster.
-
copy
Copies this cluster exemplar.- Returns:
- A deep copy of this cluster exemplar.
-
toString
-
equals
-
hashCode
public int hashCode()
-