Class DatasetDataCarrier<T extends Output<T>>

java.lang.Object
org.tribuo.impl.DatasetDataCarrier<T>

public final class DatasetDataCarrier<T extends Output<T>> extends Object
Serialization carrier for common fields in Dataset.

Likely to be a record one day.

  • Constructor Details

    • DatasetDataCarrier

      public DatasetDataCarrier(DataProvenance provenance, FeatureMap featureDomain, OutputInfo<T> outputDomain, OutputFactory<T> outputFactory, List<com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance> transformProvenances, String tribuoVersion)
      Constructs a new DatasetDataCarrier.

      Will be the canonical constructor for the record form.

      Parameters:
      provenance - The data provenance.
      featureDomain - The feature domain.
      outputDomain - The output domain.
      outputFactory - The output factory.
      transformProvenances - The transform provenances.
      tribuoVersion - The Tribuo version string.
  • Method Details

    • deserialize

      public static DatasetDataCarrier<?> deserialize(org.tribuo.protos.core.DatasetDataProto proto)
      Deserializes a DatasetDataProto into a DatasetDataCarrier.
      Parameters:
      proto - The proto to deserialize.
      Returns:
      The model data.
    • serialize

      public org.tribuo.protos.core.DatasetDataProto serialize()
      Serializes this object to a protobuf.
      Returns:
      The protobuf representation.
    • provenance

      public DataProvenance provenance()
      Get the dataset provenance.
      Returns:
      The dataset provenance.
    • featureDomain

      public FeatureMap featureDomain()
      Get the feature domain.
      Returns:
      The feature domain.
    • outputDomain

      public OutputInfo<T> outputDomain()
      Get the output domain.
      Returns:
      The output domain.
    • transformProvenances

      public List<com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance> transformProvenances()
      Get the transform provenances.
      Returns:
      The transform provenances.
    • outputFactory

      public OutputFactory<T> outputFactory()
      Get the output factory.
      Returns:
      The output factory.
    • tribuoVersion

      public String tribuoVersion()
      Gets the Tribuo version string.
      Returns:
      The Tribuo version string.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object