Package org.tribuo.impl
Class DatasetDataCarrier<T extends Output<T>>
java.lang.Object
org.tribuo.impl.DatasetDataCarrier<T>
Serialization carrier for common fields in Dataset.
Likely to be a record one day.
-
Constructor Summary
ConstructorDescriptionDatasetDataCarrier
(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. -
Method Summary
Modifier and TypeMethodDescriptionstatic DatasetDataCarrier<?>
deserialize
(org.tribuo.protos.core.DatasetDataProto proto) Deserializes aDatasetDataProto
into aDatasetDataCarrier
.boolean
Get the feature domain.int
hashCode()
Get the output domain.Get the output factory.Get the dataset provenance.org.tribuo.protos.core.DatasetDataProto
Serializes this object to a protobuf.toString()
List<com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance>
Get the transform provenances.Gets the Tribuo version string.
-
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
Deserializes aDatasetDataProto
into aDatasetDataCarrier
.- 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
Get the dataset provenance.- Returns:
- The dataset provenance.
-
featureDomain
Get the feature domain.- Returns:
- The feature domain.
-
outputDomain
Get the output domain.- Returns:
- The output domain.
-
transformProvenances
Get the transform provenances.- Returns:
- The transform provenances.
-
outputFactory
Get the output factory.- Returns:
- The output factory.
-
tribuoVersion
Gets the Tribuo version string.- Returns:
- The Tribuo version string.
-
equals
-
hashCode
public int hashCode() -
toString
-