public class DataModelUtils extends Object
| Constructor and Description |
|---|
DataModelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ArtifactRequest |
createArtifactUpsertRequest(ArtifactImpl artifact)
The factory to create
ArtifactRequest instance to be used to upsert Comet artifact. |
static ArtifactRequest |
createArtifactVersionStateRequest(String artifactVersionId,
ArtifactVersionState state)
Creates request to signal the state of the artifact version send operation.
|
static GitMetadataRest |
createGitMetadataRequest(GitMetaData metaData)
The factory to create
GitMetadataRest request instance. |
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 RegistryModelCreateRequest |
createRegistryModelCreateRequest(RegistryModelImpl model)
Prepares request to create new registry record of the model associated with particular experiment.
|
static RegistryModelItemCreateRequest |
createRegistryModelItemCreateRequest(RegistryModelImpl model)
Prepares request which can be used to update the existing registry record of the model associated
with particular experiment.
|
static AddExperimentTagsRest |
createTagRequest(@NonNull String tag)
The factory to create
AddExperimentTagsRest instance. |
Map<String,Object> |
metadataFromJson(String json)
Converts JSON encoded metadata into
Map object. |
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.public static GitMetadataRest createGitMetadataRequest(GitMetaData metaData)
GitMetadataRest request instance.metaData - the GitMetaData model object from public API.GitMetadataRest instance.public static ArtifactRequest createArtifactUpsertRequest(ArtifactImpl artifact)
ArtifactRequest instance to be used to upsert Comet artifact.artifact - the ArtifactImpl instance.ArtifactRequest instance.public static ArtifactRequest createArtifactVersionStateRequest(String artifactVersionId, ArtifactVersionState state)
artifactVersionId - the identifier of the artifact version.state - the ArtifactVersionState signaling state of the operation.ArtifactRequest instance.public static RegistryModelCreateRequest createRegistryModelCreateRequest(RegistryModelImpl model)
model - the RegistryModelImpl instance holding all required data.RegistryModelCreateRequest.public static RegistryModelItemCreateRequest createRegistryModelItemCreateRequest(RegistryModelImpl model)
model - the RegistryModelImpl instance holding all required data.RegistryModelItemCreateRequest.Copyright © 2022. All rights reserved.