Package org.tribuo.provenance
Class FeatureSetProvenance
java.lang.Object
org.tribuo.provenance.FeatureSetProvenance
- 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>>
public final class FeatureSetProvenance
extends Object
implements com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
Contains provenance information for an instance of a
SelectedFeatureSet
.
Made up of the class name of the feature set object, the provenance of the training data, the provenance of the selection algorithm and the Tribuo version.
- See Also:
-
Field Summary
Fields inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
CLASS_NAME, DEFAULT_HASH_TYPE
-
Constructor Summary
ConstructorDescriptionFeatureSetProvenance
(String className, DatasetProvenance datasetProvenance, FeatureSelectorProvenance fsProvenance) Creates a feature set provenance tracking the dataset provenance and feature selector provenance.FeatureSetProvenance
(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) Used by the provenance unmarshalling system. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The training dataset provenance.The feature selector provenance.The Tribuo version used to create this feature set.int
hashCode()
protected List<com.oracle.labs.mlrg.olcut.util.Pair<String,
com.oracle.labs.mlrg.olcut.provenance.Provenance>> Returns a list of all the provenances in this model provenance so subclasses can append to the list.Iterator<com.oracle.labs.mlrg.olcut.util.Pair<String,
com.oracle.labs.mlrg.olcut.provenance.Provenance>> iterator()
CallsinternalProvenances()
and returns the iterator from that list.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
generateString
-
Constructor Details
-
FeatureSetProvenance
public FeatureSetProvenance(String className, DatasetProvenance datasetProvenance, FeatureSelectorProvenance fsProvenance) Creates a feature set provenance tracking the dataset provenance and feature selector provenance.- Parameters:
className
- The class name of the host object (usuallySelectedFeatureSet
).datasetProvenance
- The dataset provenance.fsProvenance
- The feature selector provenance.
-
FeatureSetProvenance
Used by the provenance unmarshalling system.Throws
ProvenanceException
if there are missing fields.- Parameters:
map
- The provenance map.
-
-
Method Details
-
getDatasetProvenance
The training dataset provenance.- Returns:
- The training dataset provenance.
-
getFeatureSelectorProvenance
The feature selector provenance.- Returns:
- The feature selector provenance.
-
getTribuoVersion
The Tribuo version used to create this feature set.- Returns:
- The Tribuo version.
-
toString
-
getClassName
- Specified by:
getClassName
in interfacecom.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
-
equals
-
hashCode
public int hashCode() -
internalProvenances
protected List<com.oracle.labs.mlrg.olcut.util.Pair<String,com.oracle.labs.mlrg.olcut.provenance.Provenance>> internalProvenances()Returns a list of all the provenances in this model provenance so subclasses can append to the list.- Returns:
- A list of all the provenances in this class.
-
iterator
public Iterator<com.oracle.labs.mlrg.olcut.util.Pair<String,com.oracle.labs.mlrg.olcut.provenance.Provenance>> iterator()CallsinternalProvenances()
and returns the iterator from that list.
-