Class MutableClusteringInfo

All Implemented Interfaces:
Serializable, MutableOutputInfo<ClusterID>, OutputInfo<ClusterID>, ProtoSerializable<org.tribuo.protos.core.OutputDomainProto>

public class MutableClusteringInfo extends ClusteringInfo implements MutableOutputInfo<ClusterID>
A mutable ClusteringInfo. Can record new observations of ClusterIDs, incrementing the appropriate counts.
See Also:
  • Method Details

    • deserializeFromProto

      public static MutableClusteringInfo deserializeFromProto(int version, String className, message) throws
      Deserialization factory.
      version - The serialized object version.
      className - The class name.
      message - The serialized data.
      The deserialized object.
      Throws: - If the protobuf could not be parsed from the message.
    • observe

      public void observe(ClusterID output)
      Description copied from interface: MutableOutputInfo
      Records an output value or statistics thereof.
      Specified by:
      observe in interface MutableOutputInfo<ClusterID>
      output - The observed output.
    • clear

      public void clear()
      Description copied from interface: MutableOutputInfo
      Clears the OutputInfo, removing all things it's observed.
      Specified by:
      clear in interface MutableOutputInfo<ClusterID>
    • copy

      public MutableClusteringInfo copy()
      Description copied from interface: OutputInfo
      Generates a copy of this OutputInfo, including it's mutability.
      Specified by:
      copy in interface OutputInfo<ClusterID>
      Specified by:
      copy in class ClusteringInfo
      A copy of the OutputInfo.