public final class OnlineExperimentImpl extends Object implements OnlineExperiment
OnlineExperiment to work with Comet API asynchronously.| Modifier and Type | Method and Description |
|---|---|
void |
addTag(@NonNull String tag)
Synchronous version that waits for result or exception.
|
void |
addTag(@NonNull String tag,
@NonNull Optional<io.reactivex.rxjava3.functions.Action> onComplete)
Asynchronous version that only logs any received exceptions or failures.
|
static ml.comet.experiment.impl.OnlineExperimentBuilderImpl |
builder()
Returns builder to be used to create properly configured instance of this class.
|
void |
close()
Allows using
OnlineExperiment with try-with-resources statement with automatic closing after usage. |
void |
end()
Tells Comet that the Experiment is complete and release all associated resources.
|
List<LoggedExperimentAsset> |
getAllAssetList()
Get list of all logged experiment assets.
|
LoggedArtifact |
getArtifact(@NonNull String name)
Allows looking for logged artifact using provided search parameters.
|
LoggedArtifact |
getArtifact(@NonNull String name,
@NonNull String workspace)
Allows looking for logged artifact using provided search parameters.
|
LoggedArtifact |
getArtifact(@NonNull String name,
@NonNull String workspace,
@NonNull String versionOrAlias)
Allows looking for logged artifact using provided search parameters.
|
List<LoggedExperimentAsset> |
getAssetList(@NonNull String type)
Get list of the logged experiment assets with particular type.
|
String |
getContext()
Gets the current context identifier as recorded in the
OnlineExperiment object locally. |
long |
getEpoch()
Gets the current epoch as recorded by the Experiment object locally.
|
String |
getExperimentKey()
Get the experiment key returned by Comet.
|
Optional<String> |
getExperimentLink()
Get the experiment link returned by Comet.
|
String |
getExperimentName()
Get experiment name.
|
GitMetaData |
getGitMetadata()
Get experiment git metadata.
|
Optional<String> |
getGraph()
Get experiment graph data.
|
Optional<String> |
getHtml()
Get experiment html.
|
protected abstract org.slf4j.Logger |
getLogger()
Returns logger instance associated with particular experiment.
|
List<Value> |
getLogOther()
Get experiment log other data.
|
ExperimentMetadata |
getMetadata()
Get experiment metadata.
|
List<Value> |
getMetrics()
Get experiment metrics.
|
Optional<String> |
getOutput()
Get experiment output data.
|
List<Value> |
getParameters()
Get experiment parameters.
|
String |
getProjectName()
Get project name of the experiment.
|
long |
getStep()
Gets the current step as recorded by the Experiment object locally.
|
List<String> |
getTags()
Get experiment tags.
|
String |
getWorkspaceName()
Get workspace name of the experiment.
|
CompletableFuture<LoggedArtifact> |
logArtifact(Artifact artifact)
Logs an
Artifact object. |
void |
logAssetFolder(@NonNull File folder,
boolean logFilePath) |
void |
logAssetFolder(@NonNull File folder,
boolean logFilePath,
boolean recursive) |
void |
logAssetFolder(@NonNull File folder,
boolean logFilePath,
boolean recursive,
@NonNull ExperimentContext context)
Logs all the files located in the given folder as assets.
|
void |
logCode(@NonNull File file)
Allows you to report code for the experiment.
|
void |
logCode(@NonNull File file,
@NonNull ExperimentContext context)
Allows you to report code for the experiment.
|
void |
logCode(@NonNull String code,
@NonNull String logicalPath)
Allows you to report code for the experiment.
|
void |
logCode(@NonNull String code,
@NonNull String logicalPath,
@NonNull ExperimentContext context)
Allows you to report code for the experiment.
|
void |
logCurve(@NonNull Curve curve) |
void |
logCurve(@NonNull Curve curve,
boolean overwrite) |
void |
logCurve(@NonNull Curve curve,
boolean overwrite,
@NonNull ExperimentContext context)
Allows to log x/y curve into your Comet experiment.
|
void |
logEndTime(long endTimeMillis)
Synchronous version that waits for result or exception.
|
void |
logGitMetadata(GitMetaData gitMetadata)
Synchronous version that waits for result or exception.
|
void |
logGraph(@NonNull String graph)
Synchronous version that waits for result or exception.
|
void |
logHtml(@NonNull String html,
boolean override)
Synchronous version that waits for result or exception.
|
void |
logLine(String line,
long offset,
boolean stderr)
Send output logs to Comet.
|
void |
logLine(String line,
long offset,
boolean stderr,
String context)
Synchronous version that waits for result or exception.
|
void |
logMetric(String metricName,
Object metricValue) |
void |
logMetric(@NonNull String metricName,
@NonNull Object metricValue,
@NonNull ExperimentContext context)
Synchronous version that waits for result or exception.
|
void |
logMetric(String metricName,
Object metricValue,
long step)
Logs a metric with Comet.
|
void |
logMetric(String metricName,
Object metricValue,
long step,
long epoch)
Logs a metric with Comet.
|
void |
logModel(@NonNull String modelName,
byte[] data,
@NonNull String logicalPath) |
void |
logModel(@NonNull String modelName,
byte[] data,
@NonNull String logicalPath,
boolean overwrite) |
void |
logModel(@NonNull String modelName,
byte[] data,
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata) |
void |
logModel(@NonNull String modelName,
byte[] data,
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata,
@NonNull ExperimentContext context)
Logs the model data from specified file.
|
void |
logModel(@NonNull String modelName,
@NonNull File file) |
void |
logModel(@NonNull String modelName,
@NonNull File file,
@NonNull String logicalPath) |
void |
logModel(@NonNull String modelName,
@NonNull File file,
@NonNull String logicalPath,
boolean overwrite) |
void |
logModel(@NonNull String modelName,
@NonNull File file,
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata) |
void |
logModel(@NonNull String modelName,
@NonNull File file,
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata,
@NonNull ExperimentContext context)
Logs the model data from specified file.
|
void |
logModelFolder(@NonNull String modelName,
@NonNull File folder) |
void |
logModelFolder(@NonNull String modelName,
@NonNull File folder,
boolean logFilePath,
Map<String,Object> metadata) |
void |
logModelFolder(@NonNull String modelName,
@NonNull File folder,
boolean logFilePath,
Map<String,Object> metadata,
@NonNull ExperimentContext context)
Logs the model data from specified folder.
|
void |
logModelFolder(@NonNull String modelName,
@NonNull File folder,
Map<String,Object> metadata) |
void |
logOther(@NonNull String key,
@NonNull Object value)
Synchronous version that waits for result or exception.
|
void |
logParameter(@NonNull String parameterName,
@NonNull Object paramValue)
Logs a param with Comet under the current experiment step.
|
void |
logParameter(String parameterName,
Object paramValue,
@NonNull ExperimentContext context)
Synchronous version that waits for result or exception.
|
void |
logParameter(@NonNull String parameterName,
@NonNull Object paramValue,
long step)
Logs a param with Comet.
|
void |
logRemoteAsset(@NonNull URI uri,
boolean overwrite) |
void |
logRemoteAsset(@NonNull URI uri,
@NonNull String logicalPath,
boolean overwrite) |
void |
logRemoteAsset(@NonNull URI uri,
String logicalPath,
boolean overwrite,
Map<String,Object> metadata) |
void |
logRemoteAsset(@NonNull URI uri,
String logicalPath,
boolean overwrite,
Map<String,Object> metadata,
@NonNull ExperimentContext context)
Logs a Remote Asset identified by a
URI. |
void |
logStartTime(long startTimeMillis)
Synchronous version that waits for result or exception.
|
void |
logText(String text) |
void |
logText(String text,
@NonNull ExperimentContext context) |
void |
logText(@NonNull String text,
@NonNull ExperimentContext context,
Map<String,Object> metadata)
Allows to log additional textual data associated with Comet Experiment.
|
void |
nextEpoch()
Increments the epoch that the experiment is on.
|
void |
nextStep()
Increments the step that the experiment is on.
|
void |
setContext(String context)
Sets the context identifier for any logs and uploaded files.
|
void |
setEpoch(long epoch)
Sets the current epoch for the experiment.
|
void |
setExperimentName(@NonNull String experimentName)
Sets the experiment name.
|
void |
setInterceptStdout()
Turn on intercept of stdout and stderr and the logging of both in Comet.
|
void |
setStep(long step)
Sets the current step for the experiment.
|
void |
stopInterceptStdout()
Turn off intercept of stdout and stderr and turns off their logging in Comet.
|
void |
uploadAsset(@NonNull File asset,
boolean overwrite) |
void |
uploadAsset(@NonNull File asset,
boolean overwrite,
@NonNull ExperimentContext context)
Upload an asset to be associated with the experiment, for example the trained weights of a neural net.
|
void |
uploadAsset(@NonNull File asset,
boolean overwrite,
long step,
long epoch)
Upload an asset to be associated with the experiment, for example the trained weights of a neural net.
|
void |
uploadAsset(@NonNull File asset,
@NonNull String logicalPath,
boolean overwrite) |
void |
uploadAsset(@NonNull File asset,
@NonNull String logicalPath,
boolean overwrite,
@NonNull ExperimentContext context)
Upload an asset to be associated with the experiment, for example the trained weights of a neural net.
|
void |
uploadAsset(@NonNull File asset,
@NonNull String logicalPath,
boolean overwrite,
long step)
Upload an asset under the current experiment step to be associated with the experiment,
for example the trained weights of a neural net.
|
void |
uploadAsset(@NonNull File asset,
String logicalPath,
boolean overwrite,
long step,
long epoch)
Upload an asset to be associated with the experiment, for example the trained weights of a neural net.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllAssetList, getArtifact, getArtifact, getArtifact, getAssetList, getExperimentKey, getExperimentName, getGitMetadata, getGraph, getHtml, getLogOther, getMetadata, getMetrics, getOutput, getParameters, getProjectName, getTags, getWorkspaceName, setExperimentName, uploadAssetpublic void end()
Experimentend in interface Experimentpublic void close()
throws Exception
OnlineExperiment with try-with-resources statement with automatic closing after usage.close in interface AutoCloseableException - if an exception occurs.public void setInterceptStdout()
throws IOException
OnlineExperimentsetInterceptStdout in interface OnlineExperimentIOException - if an I/O exception occurs.public void stopInterceptStdout()
throws IOException
OnlineExperimentstopInterceptStdout in interface OnlineExperimentIOException - if an I/O exception occurs.public void nextStep()
OnlineExperimentnextStep in interface OnlineExperimentpublic long getStep()
OnlineExperimentgetStep in interface OnlineExperimentpublic void setStep(long step)
OnlineExperimentsetStep in interface OnlineExperimentstep - the current step of the experiment.public void nextEpoch()
OnlineExperimentnextEpoch in interface OnlineExperimentpublic long getEpoch()
OnlineExperimentgetEpoch in interface OnlineExperimentpublic void setEpoch(long epoch)
OnlineExperimentsetEpoch in interface OnlineExperimentepoch - the current epoch for the experiment.public void setContext(String context)
OnlineExperimentsetContext in interface OnlineExperimentcontext - the context identifier to be associated with any log records, files, and assets.public String getContext()
OnlineExperimentOnlineExperiment object locally.getContext in interface OnlineExperimentpublic Optional<String> getExperimentLink()
ExperimentgetExperimentLink in interface Experimentpublic void logMetric(@NonNull
@NonNull String metricName,
@NonNull
@NonNull Object metricValue,
@NonNull
@NonNull ExperimentContext context)
logMetric in interface ExperimentmetricName - The name for the metric to be loggedmetricValue - The new value for the metric. If the values for a metric are plottable we will plot themcontext - the context to be associated with the parameter.public void logMetric(String metricName, Object metricValue, long step, long epoch)
ExperimentlogMetric in interface ExperimentmetricName - The name for the metric to be loggedmetricValue - The new value for the metric. If the values for a metric are plottable we will plot themstep - The current step for this metric, this will set the given step for this experimentepoch - The current epoch for this metric, this will set the given epoch for this experiment.public void logMetric(String metricName, Object metricValue, long step)
OnlineExperimentlogMetric in interface OnlineExperimentmetricName - The name for the metric to be loggedmetricValue - The new value for the metric. If the values for a metric are plottable we will plot themstep - The current step for this metric, this will set the given step for this experimentpublic void logMetric(String metricName, Object metricValue)
logMetric in interface OnlineExperimentpublic void logParameter(@NonNull
@NonNull String parameterName,
@NonNull
@NonNull Object paramValue)
OnlineExperimentlogParameter in interface OnlineExperimentparameterName - The name of the param being loggedparamValue - The value for the param being loggedpublic void logParameter(@NonNull
@NonNull String parameterName,
@NonNull
@NonNull Object paramValue,
long step)
ExperimentlogParameter in interface ExperimentparameterName - The name of the param being loggedparamValue - The value for the param being loggedstep - The current step for this metric, this will set the given step for this experiment.public void logParameter(String parameterName, Object paramValue, @NonNull @NonNull ExperimentContext context)
logParameter in interface ExperimentparameterName - The name of the param being loggedparamValue - The value for the param being loggedcontext - the context to be associated with the parameter.public void logHtml(@NonNull
@NonNull String html,
boolean override)
logHtml in interface Experimenthtml - A block of html to be sent to Cometoverride - Whether previous html sent should be deleted.
If true the old html will be deleted.public void logOther(@NonNull
@NonNull String key,
@NonNull
@NonNull Object value)
logOther in interface Experimentkey - The key for the data to be storedvalue - The value for said keypublic void addTag(@NonNull
@NonNull String tag)
addTag in interface Experimenttag - The tag to be addedpublic void logGraph(@NonNull
@NonNull String graph)
logGraph in interface Experimentgraph - The graph to be logged.public void logStartTime(long startTimeMillis)
logStartTime in interface ExperimentstartTimeMillis - When you want to say that the experiment startedpublic void logEndTime(long endTimeMillis)
logEndTime in interface ExperimentendTimeMillis - When you want to say that the experiment endedpublic void logGitMetadata(GitMetaData gitMetadata)
logGitMetadata in interface ExperimentgitMetadata - The Git Metadata for the experiment.public void logLine(String line, long offset, boolean stderr)
OnlineExperimentlogLine in interface OnlineExperimentline - Text to be loggedoffset - Offset describes the place for current text to be insertedstderr - the flag to indicate if this is StdErr message.public void logLine(String line, long offset, boolean stderr, String context)
logLine in interface Experimentline - Text to be loggedoffset - Offset describes the place for current text to be insertedstderr - the flag to indicate if this is StdErr message.context - the context to be associated with the parameter.public void logAssetFolder(@NonNull
@NonNull File folder,
boolean logFilePath,
boolean recursive,
@NonNull
@NonNull ExperimentContext context)
OnlineExperimentlogAssetFolder in interface OnlineExperimentfolder - the folder you want to log.logFilePath - if true, log the file path with each file.recursive - if true, recurse the folder.context - the experiment context to be associated with the logged assets.public void logAssetFolder(@NonNull
@NonNull File folder,
boolean logFilePath,
boolean recursive)
logAssetFolder in interface OnlineExperimentpublic void logAssetFolder(@NonNull
@NonNull File folder,
boolean logFilePath)
logAssetFolder in interface OnlineExperimentpublic void uploadAsset(@NonNull
@NonNull File asset,
@NonNull
@NonNull String logicalPath,
boolean overwrite,
@NonNull
@NonNull ExperimentContext context)
ExperimentuploadAsset in interface Experimentasset - The asset to be storedlogicalPath - The file name under which the asset should be stored in Comet. E.g. "someFile.txt"overwrite - Whether to overwrite files of the same name in Cometcontext - the context to be associated with the asset.public void uploadAsset(@NonNull
@NonNull File asset,
boolean overwrite,
@NonNull
@NonNull ExperimentContext context)
ExperimentuploadAsset in interface Experimentasset - The file asset to be stored. The name of the file will be used as assets identifier on Comet.overwrite - Whether to overwrite files of the same name in Cometcontext - the context to be associated with the asset.public void uploadAsset(@NonNull
@NonNull File asset,
boolean overwrite,
long step,
long epoch)
ExperimentuploadAsset in interface Experimentasset - The file asset to be stored. The name of the file will be used as assets identifier on Comet.overwrite - Whether to overwrite files of the same name in Cometstep - the step to be associated with the assetepoch - the epoch to be associated with the assetpublic void uploadAsset(@NonNull
@NonNull File asset,
@NonNull
@NonNull String logicalPath,
boolean overwrite,
long step)
OnlineExperimentuploadAsset in interface OnlineExperimentasset - The asset to be storedlogicalPath - The file name under which the asset should be stored in Comet. E.g. "someFile.txt"overwrite - Whether to overwrite files of the same name in Cometstep - The step to be associated with assetpublic void uploadAsset(@NonNull
@NonNull File asset,
@NonNull
@NonNull String logicalPath,
boolean overwrite)
uploadAsset in interface OnlineExperimentpublic void uploadAsset(@NonNull
@NonNull File asset,
boolean overwrite)
uploadAsset in interface OnlineExperimentpublic void logRemoteAsset(@NonNull
@NonNull URI uri,
String logicalPath,
boolean overwrite,
Map<String,Object> metadata,
@NonNull
@NonNull ExperimentContext context)
OnlineExperimentURI. A Remote Asset is an asset but its content is not uploaded
and stored on Comet. Rather a link for its location is stored, so you can identify and distinguish
between two experiment using different version of a dataset stored somewhere else.logRemoteAsset in interface OnlineExperimenturi - the URI pointing to the remote asset location. There is no imposed format,
and it could be a private link.logicalPath - the optional "name" of the remote asset, could be a dataset name, a model file name.overwrite - if true will overwrite all existing assets with the same name.metadata - Some additional data to attach to the remote asset.
The dictionary values must be JSON compatible.context - the experiment context to be associated with the logged assets.public void logRemoteAsset(@NonNull
@NonNull URI uri,
String logicalPath,
boolean overwrite,
Map<String,Object> metadata)
logRemoteAsset in interface OnlineExperimentpublic void logRemoteAsset(@NonNull
@NonNull URI uri,
@NonNull
@NonNull String logicalPath,
boolean overwrite)
logRemoteAsset in interface OnlineExperimentpublic void logRemoteAsset(@NonNull
@NonNull URI uri,
boolean overwrite)
logRemoteAsset in interface OnlineExperimentpublic void logCode(@NonNull
@NonNull String code,
@NonNull
@NonNull String logicalPath,
@NonNull
@NonNull ExperimentContext context)
ExperimentlogCode in interface Experimentcode - Code to be sent to CometlogicalPath - Name of source file to be displayed on UI 'code' tabcontext - the context to be associated with the asset.public void logCode(@NonNull
@NonNull File file,
@NonNull
@NonNull ExperimentContext context)
ExperimentlogCode in interface Experimentfile - Asset with source code to be sentcontext - the context to be associated with the asset.public void logCode(@NonNull
@NonNull String code,
@NonNull
@NonNull String logicalPath)
ExperimentlogCode in interface Experimentcode - Code to be sent to CometlogicalPath - Name of source file to be displayed on UI 'code' tabpublic void logCode(@NonNull
@NonNull File file)
ExperimentlogCode in interface Experimentfile - Asset with source code to be sentpublic void logText(@NonNull
@NonNull String text,
@NonNull
@NonNull ExperimentContext context,
Map<String,Object> metadata)
ExperimentlogText in interface Experimenttext - the text data to be logged.context - the current experiment context to be associated.metadata - the additional metadata for the text.public void logText(String text, @NonNull @NonNull ExperimentContext context)
logText in interface Experimentpublic void logText(String text)
logText in interface Experimentpublic void logCurve(@NonNull
@NonNull Curve curve,
boolean overwrite,
@NonNull
@NonNull ExperimentContext context)
ExperimentlogCurve in interface Experimentcurve - the Curve object holding the data points.overwrite - allows to override the previously logged curve with the same name.context - the experiment context to be associated with data record (step, epoch, context ID).public void logCurve(@NonNull
@NonNull Curve curve,
boolean overwrite)
logCurve in interface Experimentpublic void logCurve(@NonNull
@NonNull Curve curve)
logCurve in interface Experimentpublic CompletableFuture<LoggedArtifact> logArtifact(Artifact artifact) throws ArtifactException
OnlineExperimentArtifact object. First, it creates a new version of the artifact. After that, it uploads
asynchronously all the local and remote assets attached to the artifact object.logArtifact in interface OnlineExperimentartifact - the Artifact instance.CompletableFuture which can be used to query for LoggedArtifact instance with details
about new version of artifact that was logged.ArtifactException - if operation failed.public void logModelFolder(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File folder,
boolean logFilePath,
Map<String,Object> metadata,
@NonNull
@NonNull ExperimentContext context)
OnlineExperimentlogModelFolder in interface OnlineExperimentmodelName - the name of the model.folder - the folder with model's data files.logFilePath - if true than prefix file path of each data file with folder name.metadata - the metadata to be associated with asset files of the model.
The dictionary values must be JSON compatible.context - the experiment context to be associated with the logged model.public void logModelFolder(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File folder,
boolean logFilePath,
Map<String,Object> metadata)
logModelFolder in interface OnlineExperimentpublic void logModelFolder(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File folder,
Map<String,Object> metadata)
logModelFolder in interface OnlineExperimentpublic void logModelFolder(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File folder)
logModelFolder in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File file,
@NonNull
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata,
@NonNull
@NonNull ExperimentContext context)
OnlineExperimentlogModel in interface OnlineExperimentmodelName - the name of the modelfile - the file with model data.logicalPath - the optional "name" of the model file, if missed the file name will be used.overwrite - if true will overwrite all existing model with the same name.metadata - the additional metadata to attach to the asset file of the model.
The dictionary values must be JSON compatible.context - the experiment context to be associated with the logged model.public void logModel(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File file,
@NonNull
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata)
logModel in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File file,
@NonNull
@NonNull String logicalPath,
boolean overwrite)
logModel in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File file,
@NonNull
@NonNull String logicalPath)
logModel in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
@NonNull
@NonNull File file)
logModel in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
byte[] data,
@NonNull
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata,
@NonNull
@NonNull ExperimentContext context)
OnlineExperimentlogModel in interface OnlineExperimentmodelName - the name of the modeldata - the model's data.logicalPath - the name of the model file.overwrite - if true will overwrite all existing model with the same name.metadata - the additional metadata to attach to the asset data of the model.
The dictionary values must be JSON compatible.context - the experiment context to be associated with the logged model.public void logModel(@NonNull
@NonNull String modelName,
byte[] data,
@NonNull
@NonNull String logicalPath,
boolean overwrite,
Map<String,Object> metadata)
logModel in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
byte[] data,
@NonNull
@NonNull String logicalPath,
boolean overwrite)
logModel in interface OnlineExperimentpublic void logModel(@NonNull
@NonNull String modelName,
byte[] data,
@NonNull
@NonNull String logicalPath)
logModel in interface OnlineExperimentpublic static ml.comet.experiment.impl.OnlineExperimentBuilderImpl builder()
public void addTag(@NonNull
@NonNull String tag,
@NonNull
@NonNull Optional<io.reactivex.rxjava3.functions.Action> onComplete)
tag - The tag to be addedonComplete - The optional action to be invoked when this operation asynchronously completes.
Can be null if not interested in completion signal.protected abstract org.slf4j.Logger getLogger()
public String getExperimentKey()
ExperimentgetExperimentKey in interface Experimentpublic String getProjectName()
ExperimentgetProjectName in interface Experimentpublic String getWorkspaceName()
ExperimentgetWorkspaceName in interface Experimentpublic String getExperimentName()
ExperimentgetExperimentName in interface Experimentpublic void setExperimentName(@NonNull
@NonNull String experimentName)
ExperimentsetExperimentName in interface ExperimentexperimentName - The new name for the experimentpublic void uploadAsset(@NonNull
@NonNull File asset,
String logicalPath,
boolean overwrite,
long step,
long epoch)
ExperimentuploadAsset in interface Experimentasset - The asset to be storedlogicalPath - The file name under which the asset should be stored in Comet. E.g. "someFile.txt"overwrite - Whether to overwrite files of the same name in Cometstep - the step to be associated with the assetepoch - the epoch to be associated with the assetpublic LoggedArtifact getArtifact(@NonNull @NonNull String name, @NonNull @NonNull String workspace, @NonNull @NonNull String versionOrAlias) throws ArtifactException
ExperimentgetArtifact in interface Experimentname - the short name of the artifact like 'artifact-name'.workspace - the workspace where artifact was saved.versionOrAlias - the artifact version or alias to be returned.LoggedArtifact instance.ArtifactException - if failed to get comet artifact.public LoggedArtifact getArtifact(@NonNull @NonNull String name, @NonNull @NonNull String workspace) throws ArtifactException
ExperimentgetArtifact in interface Experimentname - the short name of the artifact like 'artifact-name' or
the name of artifact with version or alias like 'artifact-name:versionOrAlias'.workspace - the workspace where artifact was saved.LoggedArtifact instance.ArtifactException - if failed to get comet artifact.public LoggedArtifact getArtifact(@NonNull @NonNull String name) throws ArtifactException
ExperimentgetArtifact in interface Experimentname - the name of the artifact. This could either be a fully
qualified artifact name like 'workspace/artifact-name:versionOrAlias'
or any short forms like 'artifact-name', 'artifact-name:versionOrAlias'.LoggedArtifact instance.ArtifactException - if failed to get comet artifact.public ExperimentMetadata getMetadata()
ExperimentgetMetadata in interface Experimentpublic GitMetaData getGitMetadata()
ExperimentgetGitMetadata in interface Experimentpublic Optional<String> getHtml()
ExperimentgetHtml in interface Experimentpublic Optional<String> getOutput()
ExperimentgetOutput in interface Experimentpublic Optional<String> getGraph()
ExperimentgetGraph in interface Experimentpublic List<Value> getParameters()
ExperimentgetParameters in interface Experimentpublic List<Value> getMetrics()
ExperimentgetMetrics in interface Experimentpublic List<Value> getLogOther()
ExperimentgetLogOther in interface Experimentpublic List<String> getTags()
ExperimentgetTags in interface Experimentpublic List<LoggedExperimentAsset> getAssetList(@NonNull @NonNull String type)
ExperimentgetAssetList in interface Experimenttype - the type of assets to be included.public List<LoggedExperimentAsset> getAllAssetList()
ExperimentgetAllAssetList in interface ExperimentCopyright © 2022. All rights reserved.