public class EnsembleModelProvenance extends ModelProvenance
Modifier and Type | Field and Description |
---|---|
protected static String |
MEMBERS |
ARCH_STRING, archString, className, DATASET, datasetProvenance, INSTANCE_VALUES, instanceProvenance, JAVA_VERSION_STRING, javaVersionString, OS_STRING, osString, time, TRAINER, trainerProvenance, TRAINING_TIME, TRIBUO_VERSION_STRING, UNKNOWN_VERSION, versionString
Constructor and Description |
---|
EnsembleModelProvenance(Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> map)
Used by the provenance unmarshalling system.
|
EnsembleModelProvenance(String className,
OffsetDateTime time,
DatasetProvenance datasetProvenance,
TrainerProvenance trainerProvenance,
com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> memberProvenance)
Creates a provenance for an ensemble model tracking the class name, creation time, dataset provenance and
trainer provenance along with the individual model provenances
for each ensemble member.
|
EnsembleModelProvenance(String className,
OffsetDateTime time,
DatasetProvenance datasetProvenance,
TrainerProvenance trainerProvenance,
Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> instanceProvenance,
boolean trackSystem,
com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> memberProvenance)
Creates a provenance for an ensemble model tracking the class name, creation time, dataset provenance,
trainer provenance and any instance specific provenance along with the individual model provenances
for each ensemble member.
|
EnsembleModelProvenance(String className,
OffsetDateTime time,
DatasetProvenance datasetProvenance,
TrainerProvenance trainerProvenance,
Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> instanceProvenance,
com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> memberProvenance)
Creates a provenance for an ensemble model tracking the class name, creation time, dataset provenance,
trainer provenance and any instance specific provenance along with the individual model provenances
for each ensemble member.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> |
getMemberProvenance()
Get the provenances for each ensemble member.
|
int |
hashCode() |
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.
|
String |
toString() |
getArch, getClassName, getDatasetProvenance, getInstanceProvenance, getJavaVersion, getOS, getTrainerProvenance, getTrainingTime, getTribuoVersion, iterator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkAndExtractProvenance, generateString, maybeExtractProvenance
forEach, spliterator
protected static final String MEMBERS
public EnsembleModelProvenance(String className, OffsetDateTime time, DatasetProvenance datasetProvenance, TrainerProvenance trainerProvenance, com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> memberProvenance)
Also tracks system details like the os name, os architecture, java version, and Tribuo version.
className
- The model class name.time
- The model creation time.datasetProvenance
- The dataset provenance.trainerProvenance
- The trainer provenance.memberProvenance
- The ensemble member provenances.public EnsembleModelProvenance(String className, OffsetDateTime time, DatasetProvenance datasetProvenance, TrainerProvenance trainerProvenance, Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> instanceProvenance, com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> memberProvenance)
Also tracks system details like the os name, os architecture, java version, and Tribuo version.
className
- The model class name.time
- The model creation time.datasetProvenance
- The dataset provenance.trainerProvenance
- The trainer provenance.instanceProvenance
- Provenance for this specific model training run.memberProvenance
- The ensemble member provenances.public EnsembleModelProvenance(String className, OffsetDateTime time, DatasetProvenance datasetProvenance, TrainerProvenance trainerProvenance, Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> instanceProvenance, boolean trackSystem, com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> memberProvenance)
Also optionally tracks system details like the os name, os architecture, java version, and Tribuo version.
className
- The model class name.time
- The model creation time.datasetProvenance
- The dataset provenance.trainerProvenance
- The trainer provenance.instanceProvenance
- Provenance for this specific model training run.memberProvenance
- The ensemble member provenances.trackSystem
- If true then store the java version, os name and os arch in the provenance.public com.oracle.labs.mlrg.olcut.provenance.ListProvenance<? extends ModelProvenance> getMemberProvenance()
public boolean equals(Object o)
equals
in class ModelProvenance
public int hashCode()
hashCode
in class ModelProvenance
public String toString()
toString
in class ModelProvenance
protected List<com.oracle.labs.mlrg.olcut.util.Pair<String,com.oracle.labs.mlrg.olcut.provenance.Provenance>> internalProvenances()
ModelProvenance
internalProvenances
in class ModelProvenance
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.