Class ClusteringFactory

All Implemented Interfaces:,<OutputFactoryProvenance>, Serializable, OutputFactory<ClusterID>, ProtoSerializable<org.tribuo.protos.core.OutputFactoryProto>

public final class ClusteringFactory extends Object implements OutputFactory<ClusterID>
A factory for making ClusterID related classes.

Parses the ClusterID by calling toString on the input then parsing it as an int.

See Also:
  • Field Details


      public static final ClusterID UNASSIGNED_CLUSTER_ID
      The sentinel unassigned cluster id, used when there is no ground truth clustering.
  • Constructor Details

    • ClusteringFactory

      public ClusteringFactory()
      ClusteringFactory is stateless and immutable, but we need to be able to construct them via the config system.
  • Method Details