| Modifier and Type | Method and Description |
|---|---|
static CometApiBuilder |
builder()
Returns builder to be used to properly create instance of this class.
|
void |
close()
Release all resources hold by this instance, such as connection to the Comet server.
|
ModelDownloadInfo |
downloadRegistryModel(@NonNull Path outputPath,
@NonNull String registryName,
@NonNull String workspace) |
ModelDownloadInfo |
downloadRegistryModel(@NonNull Path outputPath,
@NonNull String registryName,
@NonNull String workspace,
@NonNull DownloadModelOptions options)
Downloads and saves all files from the registered model.
|
List<ExperimentMetadata> |
getAllExperiments(@NonNull String projectId)
Gets metadata of all experiments created under specified project id.
|
List<Project> |
getAllProjects(@NonNull String workspaceName)
Gets all projects under specified workspace name.
|
List<String> |
getAllWorkspaces()
Gets all workspaces available for current API key.
|
ModelRegistryRecord |
registerModel(@NonNull Model model,
@NonNull String experimentKey)
Register model defined in the specified experiment in the Comet's model registry.
|
public List<String> getAllWorkspaces()
CometApigetAllWorkspaces in interface CometApipublic List<Project> getAllProjects(@NonNull @NonNull String workspaceName)
CometApigetAllProjects in interface CometApiworkspaceName - workspace namepublic List<ExperimentMetadata> getAllExperiments(@NonNull @NonNull String projectId)
CometApigetAllExperiments in interface CometApiprojectId - the ID of the project.public ModelRegistryRecord registerModel(@NonNull @NonNull Model model, @NonNull @NonNull String experimentKey)
CometApiregisterModel in interface CometApimodel - the Model to be registered.experimentKey - the identifier of the experiment where model assets was logged.ModelRegistryRecord instance holding information about model registry record.public ModelDownloadInfo downloadRegistryModel(@NonNull @NonNull Path outputPath, @NonNull @NonNull String registryName, @NonNull @NonNull String workspace, @NonNull @NonNull DownloadModelOptions options) throws IOException
CometApidownloadRegistryModel in interface CometApioutputPath - the output directory to save files.registryName - the name of the model as in models' registry.workspace - the name of the workspace.options - the DownloadModelOptions defining additional download options.ModelDownloadInfo with download details.IOException - if an I/O exception occurs while saving model files.public ModelDownloadInfo downloadRegistryModel(@NonNull @NonNull Path outputPath, @NonNull @NonNull String registryName, @NonNull @NonNull String workspace) throws IOException
downloadRegistryModel in interface CometApiIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if an I/O exception occurs.public static CometApiBuilder builder()
Copyright © 2022. All rights reserved.