public interface OnlineExperiment extends Experiment
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Tells Comet that the Experiment is complete.
|
String |
getContext()
Gets the current context as recorded in the Experiment object locally
|
long |
getEpoch()
Gets the current epoch as recorded by the Experiment object locally
|
long |
getStep()
Gets the current step as recorded by the Experiment object locally
|
void |
logLine(String line,
long offset,
boolean stderr)
Send logs to Comet.
|
void |
logMetric(String metricName,
Object metricValue) |
void |
logMetric(String metricName,
Object metricValue,
long step)
Logs a metric with Comet under the current experiment step.
|
void |
logParameter(String parameterName,
Object paramValue)
Logs a param with Comet under the current experiment step.
|
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 for any logs and uploaded files
|
void |
setEpoch(long epoch)
Sets the current epoch for the experiment.
|
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(File asset,
boolean overwrite) |
void |
uploadAsset(File asset,
String fileName,
boolean overwrite) |
void |
uploadAsset(File asset,
String fileName,
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
|
addTag, getAssetList, getExperimentKey, getExperimentLink, getExperimentName, getGitMetadata, getGraph, getHtml, getLogOther, getMetadata, getMetrics, getOutput, getParameters, getProjectName, getTags, getWorkspaceName, logCode, logCode, logEndTime, logGitMetadata, logGraph, logHtml, logMetric, logOther, logParameter, logStartTime, setExperimentName, uploadAsset, uploadAssetvoid end()
void setInterceptStdout()
throws IOException
IOExceptionvoid stopInterceptStdout()
void logLine(String line, long offset, boolean stderr)
line - Text to be loggedoffset - Offset describes the place for current text to be insertedstderr - void setStep(long step)
void nextStep()
long getStep()
void setEpoch(long epoch)
void nextEpoch()
long getEpoch()
void setContext(String context)
String getContext()
void logMetric(String metricName, Object metricValue, long step)
metricName - 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 step to be associated with this metricvoid logParameter(String parameterName, Object paramValue)
parameterName - The name of the param being loggedparamValue - The value for the param being loggedvoid uploadAsset(File asset, String fileName, boolean overwrite, long step)
asset - The asset to be storedfileName - 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 assetvoid uploadAsset(File asset, boolean overwrite)
Copyright © 2021. All rights reserved.