Class DatasetView.DatasetViewProvenance

java.lang.Object
org.tribuo.provenance.DatasetProvenance
org.tribuo.dataset.DatasetView.DatasetViewProvenance
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance, com.oracle.labs.mlrg.olcut.provenance.Provenance, Serializable, Iterable<com.oracle.labs.mlrg.olcut.util.Pair<String,com.oracle.labs.mlrg.olcut.provenance.Provenance>>, DataProvenance
Enclosing class:
DatasetView<T extends Output<T>>

public static final class DatasetView.DatasetViewProvenance extends DatasetProvenance
Provenance for the DatasetView.
See Also:
  • Constructor Details

    • DatasetViewProvenance

      public DatasetViewProvenance(Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> map)
      Deserialization constructor.
      Parameters:
      map - The provenances.
  • Method Details

    • generateBootstrap

      public int[] generateBootstrap()
      Generates the indices from this DatasetViewProvenance by rerunning the bootstrap sample.

      Note these indices are invalid if the view is a weighted sample, or not sampled.

      Returns:
      The bootstrap indices.
    • isSampled

      public boolean isSampled()
      Is this view from a bootstrap sample.
      Returns:
      True if it's a bootstrap sample.
    • isWeighted

      public boolean isWeighted()
      Is this view a weighted bootstrap sample.
      Returns:
      True if it's a weighted bootstrap sample.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class DatasetProvenance
    • allProvenances

      protected List<com.oracle.labs.mlrg.olcut.util.Pair<String,com.oracle.labs.mlrg.olcut.provenance.Provenance>> allProvenances()
      Description copied from class: DatasetProvenance
      Returns a list of all the provenances.
      Overrides:
      allProvenances in class DatasetProvenance
      Returns:
      The provenances.
    • toString

      public String toString()
      This toString doesn't put the indices in the string, as it's likely to be huge.
      Overrides:
      toString in class DatasetProvenance
      Returns:
      A string describing this provenance.