public interface Experiment
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String tag)
Adds a tag to this experiment.
|
void |
end()
Tells Comet that the Experiment is complete and release all associated resources.
|
List<ExperimentAssetLink> |
getAssetList(String type)
Get experiment asset list.
|
String |
getExperimentKey()
Get the experiment key returned by Comet.
|
Optional<String> |
getExperimentLink()
Get the experiment link returned by Comet.
|
String |
getExperimentName()
Get experiment name.
|
GitMetadataRest |
getGitMetadata()
Get experiment git metadata.
|
Optional<String> |
getGraph()
Get experiment graph data.
|
Optional<String> |
getHtml()
Get experiment html.
|
List<ValueMinMaxDto> |
getLogOther()
Get experiment log other data.
|
ExperimentMetadataRest |
getMetadata()
Get experiment metadata.
|
List<ValueMinMaxDto> |
getMetrics()
Get experiment metrics.
|
Optional<String> |
getOutput()
Get experiment output data.
|
List<ValueMinMaxDto> |
getParameters()
Get experiment parameters.
|
String |
getProjectName()
Get project name of the experiment.
|
List<String> |
getTags()
Get experiment tags.
|
String |
getWorkspaceName()
Get workspace name of the experiment.
|
void |
logCode(File file)
Allows you to report code for the experiment.
|
void |
logCode(String code,
String fileName)
Allows you to report code for the experiment.
|
void |
logEndTime(long endTimeMillis)
Logs the start time of the experiment.
|
void |
logGitMetadata(CreateGitMetadata gitMetadata)
Logs Git Metadata for the experiment.
|
void |
logGraph(String graph)
Logs a graph to Comet.
|
void |
logHtml(String html,
boolean override)
Allows you to create html report for the experiment.
|
void |
logMetric(String metricName,
Object metricValue,
long step,
long epoch)
Logs a metric with Comet.
|
void |
logOther(String key,
Object value)
Logs a key value pair with Comet.
|
void |
logParameter(String parameterName,
Object paramValue,
long step)
Logs a param with Comet.
|
void |
logStartTime(long startTimeMillis)
Logs the start time of the experiment.
|
void |
setExperimentName(String experimentName)
Sets the experiment name.
|
void |
uploadAsset(File asset,
boolean overwrite,
long step,
long epoch) |
void |
uploadAsset(File asset,
String fileName,
boolean overwrite,
long step,
long epoch)
Upload an asset to be associated with the experiment, for example the trained weights of a neural net.
|
String getExperimentKey()
Optional<String> getExperimentLink()
String getProjectName()
String getWorkspaceName()
String getExperimentName()
ExperimentMetadataRest getMetadata()
GitMetadataRest getGitMetadata()
Optional<String> getOutput()
Optional<String> getGraph()
List<ValueMinMaxDto> getParameters()
List<ValueMinMaxDto> getMetrics()
List<ValueMinMaxDto> getLogOther()
List<ExperimentAssetLink> getAssetList(String type)
type - the type of assets to be included.void setExperimentName(String experimentName)
experimentName - The new name for the experimentvoid logMetric(String metricName, Object metricValue, long step, long epoch)
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 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 experimentvoid logParameter(String parameterName, Object paramValue, long step)
parameterName - 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 experimentvoid logHtml(String html, boolean override)
html - A block of html to be sent to Cometoverride - Whether previous html sent should be deleted. If true the old html will be deleted.
If false, it will have the new html appended onto the end.void logOther(String key, Object value)
key - The key for the data to be storedvalue - The value for said keyvoid addTag(String tag)
tag - The tag to be addedvoid logGraph(String graph)
graph - The graph to be loggedvoid logStartTime(long startTimeMillis)
startTimeMillis - When you want to say that the experiment startedvoid logEndTime(long endTimeMillis)
endTimeMillis - When you want to say that the experiment endedvoid logCode(String code, String fileName)
code - Code to be sent to CometfileName - Name of source file to be displayed on UI 'code' tabvoid logCode(File file)
file - Asset with source code to be sentvoid uploadAsset(File asset, String fileName, boolean overwrite, long step, long epoch)
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 assetepoch - the epoch to be associated with assetvoid uploadAsset(File asset, boolean overwrite, long step, long epoch)
void logGitMetadata(CreateGitMetadata gitMetadata)
gitMetadata - The Git Metadata for the experimentvoid end()
Copyright © 2021. All rights reserved.