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>>
Provenance for the
DatasetView.- See Also:
-
Field Summary
Fields inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
CLASS_NAME, DEFAULT_HASH_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionDatasetViewProvenance(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<com.oracle.labs.mlrg.olcut.util.Pair<String, com.oracle.labs.mlrg.olcut.provenance.Provenance>> booleanint[]Generates the indices from this DatasetViewProvenance by rerunning the bootstrap sample.inthashCode()booleanIs this view from a bootstrap sample.booleanIs this view a weighted bootstrap sample.toString()This toString doesn't put the indices in the string, as it's likely to be huge.Methods inherited from class org.tribuo.provenance.DatasetProvenance
getClassName, getNumExamples, getNumFeatures, getNumOutputs, getSourceProvenance, getTransformationProvenance, getTribuoVersion, isDense, isSequence, iteratorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
generateString
-
Constructor Details
-
DatasetViewProvenance
-
-
Method Details
-
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
Is this view from a bootstrap sample.- Returns:
- True if it's a bootstrap sample.
-
isWeighted
Is this view a weighted bootstrap sample.- Returns:
- True if it's a weighted bootstrap sample.
-
equals
- Overrides:
equalsin classDatasetProvenance
-
hashCode
- Overrides:
hashCodein classDatasetProvenance
-
allProvenances
protected List<com.oracle.labs.mlrg.olcut.util.Pair<String, com.oracle.labs.mlrg.olcut.provenance.Provenance>> allProvenances()- Overrides:
allProvenancesin classDatasetProvenance
-
toString
This toString doesn't put the indices in the string, as it's likely to be huge.- Overrides:
toStringin classDatasetProvenance- Returns:
- A string describing this provenance.
-