public class DataUtils extends Object
| Constructor and Description |
|---|
DataUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AddGraphRest |
createGraphRequest(@NonNull String graph)
The factory to create
AddGraphRest instance. |
static ExperimentTimeRequest |
createLogEndTimeRequest(long endTimeMillis)
The factory to create
ExperimentTimeRequest instance. |
static HtmlRest |
createLogHtmlRequest(@NonNull String html,
boolean override)
The factory to create
HtmlRest instance. |
static OutputUpdate |
createLogLineRequest(@NonNull String line,
long offset,
boolean stderr,
String context)
The factory to create
OutputUpdate instance. |
static MetricRest |
createLogMetricRequest(@NonNull String metricName,
@NonNull Object metricValue,
@NonNull ExperimentContext context)
The factory to create
MetricRest instance. |
static LogOtherRest |
createLogOtherRequest(@NonNull String key,
@NonNull Object value)
The factory to create
LogOtherRest instance. |
static ParameterRest |
createLogParamRequest(@NonNull String parameterName,
@NonNull Object paramValue,
@NonNull ExperimentContext context)
The factory to create
ParameterRest instance. |
static ExperimentTimeRequest |
createLogStartTimeRequest(long startTimeMillis)
The factory to create
ExperimentTimeRequest instance. |
static AddExperimentTagsRest |
createTagRequest(@NonNull String tag)
The factory to create
AddExperimentTagsRest instance. |
public static MetricRest createLogMetricRequest(@NonNull @NonNull String metricName, @NonNull @NonNull Object metricValue, @NonNull @NonNull ExperimentContext context)
MetricRest instance.metricName - the metric namemetricValue - the metric valuecontext - the current contextMetricRest instance.public static ParameterRest createLogParamRequest(@NonNull @NonNull String parameterName, @NonNull @NonNull Object paramValue, @NonNull @NonNull ExperimentContext context)
ParameterRest instance.parameterName - the name of the parameterparamValue - the value of the parametercontext - the current contextParameterRest instance.public static OutputUpdate createLogLineRequest(@NonNull @NonNull String line, long offset, boolean stderr, String context)
OutputUpdate instance.line - the log lineoffset - the log line offsetstderr - the flag to indicate if it's from StdErrcontext - the current contextOutputUpdate instance.public static HtmlRest createLogHtmlRequest(@NonNull @NonNull String html, boolean override)
HtmlRest instance.html - the HTML code to be logged.override - the flag to indicate whether it should override already saved version.HtmlRest instance.public static LogOtherRest createLogOtherRequest(@NonNull @NonNull String key, @NonNull @NonNull Object value)
LogOtherRest instance.key - the parameter name/key.value - the parameter value.LogOtherRest instance.public static AddExperimentTagsRest createTagRequest(@NonNull @NonNull String tag)
AddExperimentTagsRest instance.tag - the tag valueAddExperimentTagsRest instancepublic static AddGraphRest createGraphRequest(@NonNull @NonNull String graph)
AddGraphRest instance.graph - the NN graph representation.AddGraphRest instance.public static ExperimentTimeRequest createLogStartTimeRequest(long startTimeMillis)
ExperimentTimeRequest instance.startTimeMillis - the experiment's start time in milliseconds.ExperimentTimeRequest instance.public static ExperimentTimeRequest createLogEndTimeRequest(long endTimeMillis)
ExperimentTimeRequest instance.endTimeMillis - the experiment's end time in milliseconds.ExperimentTimeRequest instance.Copyright © 2021. All rights reserved.