public abstract class BaseExperiment extends Object implements Experiment
| Constructor and Description |
|---|
BaseExperiment() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String tag)
Adds a tag to this experiment.
|
List<ExperimentAssetLink> |
getAssetList(String type)
Get experiment asset list.
|
protected abstract Connection |
getConnection() |
protected abstract String |
getContext() |
GitMetadataRest |
getGitMetadata()
Get experiment git metadata.
|
Optional<String> |
getGraph()
Get experiment graph data.
|
Optional<String> |
getHtml()
Get experiment html.
|
protected abstract org.slf4j.Logger |
getLogger() |
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.
|
List<String> |
getTags()
Get experiment tags.
|
void |
logCode(File asset)
Let's you report code for the experiment.
|
void |
logCode(String code,
String fileName)
Let's you report code for the experiment.
|
void |
logEndTime(long endTimeMillis)
Logs the start time of the experiment
|
void |
logGitMetadata(CreateGitMetadata gitMetadata)
Log Git Metadata for the experiment.
|
void |
logGraph(String graph)
Logs a graph to Comet
|
void |
logHtml(String html,
boolean override)
Let's you create an 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExperimentKey, getExperimentLink, getExperimentName, getProjectName, getWorkspaceNameprotected abstract String getContext()
protected abstract Connection getConnection()
protected abstract org.slf4j.Logger getLogger()
public void setExperimentName(String experimentName)
ExperimentsetExperimentName in interface ExperimentexperimentName - The new name for the experimentpublic 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 experimentpublic void logParameter(String parameterName, 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 experimentpublic void logHtml(String html, boolean override)
ExperimentlogHtml 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. If false, it will have the new html appended onto the end.public void logCode(String code, String fileName)
ExperimentlogCode in interface Experimentcode - Code to be sent to CometfileName - Name of source file to be displayed on UI 'code' tabpublic void logCode(File asset)
ExperimentlogCode in interface Experimentasset - Asset with source code to be sentpublic void logOther(String key, Object value)
ExperimentlogOther in interface Experimentkey - The key for the data to be storedvalue - The value for said keypublic void addTag(String tag)
ExperimentaddTag in interface Experimenttag - The tag to be addedpublic void logGraph(String graph)
ExperimentlogGraph in interface Experimentgraph - The graph to be loggedpublic void logStartTime(long startTimeMillis)
ExperimentlogStartTime in interface ExperimentstartTimeMillis - When you want to say that the experiment startedpublic void logEndTime(long endTimeMillis)
ExperimentlogEndTime in interface ExperimentendTimeMillis - When you want to say that the experiment endedpublic void uploadAsset(File asset, String fileName, boolean overwrite, long step, long epoch)
ExperimentuploadAsset in interface Experimentasset - 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 assetpublic void uploadAsset(File asset, boolean overwrite, long step, long epoch)
uploadAsset in interface Experimentpublic void logGitMetadata(CreateGitMetadata gitMetadata)
ExperimentlogGitMetadata in interface ExperimentgitMetadata - The Git Metadata for the experimentpublic ExperimentMetadataRest getMetadata()
ExperimentgetMetadata in interface Experimentpublic GitMetadataRest 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<ValueMinMaxDto> getParameters()
ExperimentgetParameters in interface Experimentpublic List<ValueMinMaxDto> getMetrics()
ExperimentgetMetrics in interface Experimentpublic List<ValueMinMaxDto> getLogOther()
ExperimentgetLogOther in interface Experimentpublic List<String> getTags()
ExperimentgetTags in interface Experimentpublic List<ExperimentAssetLink> getAssetList(String type)
ExperimentgetAssetList in interface ExperimentCopyright © 2021. All rights reserved.