Class HdbscanTrainer.ClusterExemplar

java.lang.Object
org.tribuo.clustering.hdbscan.HdbscanTrainer.ClusterExemplar
All Implemented Interfaces:
Serializable
Enclosing class:
HdbscanTrainer

public static final class HdbscanTrainer.ClusterExemplar extends Object implements Serializable
A cluster exemplar, with attributes for the point's label, outlier score and its features.
See Also:
  • Method Details

    • getLabel

      public Integer getLabel()
      Get the label in this exemplar.
      Returns:
      The label.
    • getOutlierScore

      public Double getOutlierScore()
      Get the outlier score in this exemplar.
      Returns:
      The outlier score.
    • getFeatures

      public SGDVector getFeatures()
      Get the feature vector in this exemplar.
      Returns:
      The feature vector.
    • getMaxDistToEdge

      public Double 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object