public final class ExternalTrainerProvenance extends Object implements TrainerProvenance
It records the timestamp, hash and location of the loaded model.
If the model is already loaded into memory then the location is the current working directory and the timestamp is when this class is instantiated.
IS_SEQUENCE, TRAIN_INVOCATION_COUNT, TRIBUO_VERSION_STRING
Constructor and Description |
---|
ExternalTrainerProvenance(byte[] model)
Creates an external trainer provenance, computing the hash from the byte array and storing this
instant as the timestamp, and the current working directory as the location.
|
ExternalTrainerProvenance(Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> provenance)
Used by the provenance serialization system.
|
ExternalTrainerProvenance(URL location)
Creates an external trainer provenance, storing the location
and pulling in the timestamp and file hash.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getClassName() |
Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> |
getConfiguredParameters() |
Map<String,com.oracle.labs.mlrg.olcut.provenance.PrimitiveProvenance<?>> |
getInstanceValues() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEmptyProvenance, iterator
checkAndExtractProvenance, generateString, maybeExtractProvenance
forEach, spliterator
public ExternalTrainerProvenance(URL location)
location
- The location to use.public ExternalTrainerProvenance(byte[] model)
model
- The model as a byte array.public Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> getConfiguredParameters()
getConfiguredParameters
in interface com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
public String getClassName()
getClassName
in interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
public Map<String,com.oracle.labs.mlrg.olcut.provenance.PrimitiveProvenance<?>> getInstanceValues()
getInstanceValues
in interface com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.