Package org.tribuo.provenance
Class SkeletalTrainerProvenance
java.lang.Object
com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
org.tribuo.provenance.SkeletalTrainerProvenance
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
,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>> TrainerProvenance
- Direct Known Subclasses:
AbstractCARTTrainer.AbstractCARTTrainerProvenance
,HashingSequenceTrainer.HashingSequenceTrainerProvenance
,TensorFlowSequenceTrainer.TensorFlowSequenceTrainerProvenance
,TensorFlowTrainer.TensorFlowTrainerProvenance
,TrainerProvenanceImpl
,XGBoostTrainer.XGBoostTrainerProvenance
public abstract class SkeletalTrainerProvenance
extends com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
implements TrainerProvenance
The skeleton of a TrainerProvenance that extracts the configured parameters.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance.ExtractedInfo
-
Field Summary
Fields inherited from class com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
className, configuredParameters, HOST_SHORT_NAME, hostShortName
Fields inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
CLASS_NAME, DEFAULT_HASH_TYPE
Fields inherited from interface org.tribuo.provenance.TrainerProvenance
IS_SEQUENCE, TRAIN_INVOCATION_COUNT, TRIBUO_VERSION_STRING
-
Constructor Summary
ModifierConstructorDescriptionprotected
SkeletalTrainerProvenance
(com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance.ExtractedInfo info) Deserialization constructor.protected
SkeletalTrainerProvenance
(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) Deserialization constructor.protected
SkeletalTrainerProvenance
(SequenceTrainer<T> host) Builds a trainer provenance extracting the standard information from the host.protected
SkeletalTrainerProvenance
(Trainer<T> host) Builds a trainer provenance extracting the standard information from the host. -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected static com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance.ExtractedInfo
extractProvenanceInfo
(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) Extracts the provenance information from the supplied map, splitting it into configuration and instance information.The Tribuo version.int
hashCode()
boolean
Is this a sequence trainer.Methods inherited from class com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
checkAndExtractProvenance, getClassName, getConfiguredParameters, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
getConfiguredParameters, iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
generateString, getClassName
-
Constructor Details
-
SkeletalTrainerProvenance
Builds a trainer provenance extracting the standard information from the host.- Type Parameters:
T
- The output type.- Parameters:
host
- The host object.
-
SkeletalTrainerProvenance
Builds a trainer provenance extracting the standard information from the host.- Type Parameters:
T
- The output type.- Parameters:
host
- The host object.
-
SkeletalTrainerProvenance
protected SkeletalTrainerProvenance(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) Deserialization constructor.- Parameters:
map
- The provenance map.
-
SkeletalTrainerProvenance
protected SkeletalTrainerProvenance(com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance.ExtractedInfo info) Deserialization constructor.- Parameters:
info
- The extracted provenance information.
-
-
Method Details
-
isSequence
public boolean isSequence()Is this a sequence trainer.- Returns:
- True if it's a sequence trainer.
-
getTribuoVersion
The Tribuo version.- Returns:
- The Tribuo version.
-
getInstanceValues
- Specified by:
getInstanceValues
in interfacecom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
- Overrides:
getInstanceValues
in classcom.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
-
equals
- Overrides:
equals
in classcom.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance
-
extractProvenanceInfo
protected static com.oracle.labs.mlrg.olcut.provenance.impl.SkeletalConfiguredObjectProvenance.ExtractedInfo extractProvenanceInfo(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) Extracts the provenance information from the supplied map, splitting it into configuration and instance information.- Parameters:
map
- The provenance map.- Returns:
- The provenance information.
-