| 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.
|
void |
deleteRegistryModel(@NonNull String registryName,
@NonNull String workspace)
Deletes registered model with given name.
|
void |
deleteRegistryModelVersion(@NonNull String registryName,
@NonNull String workspace,
@NonNull String version)
Deletes specific version of the registered model with given name.
|
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.
|
Optional<ModelOverview> |
getRegistryModelDetails(@NonNull String registryName,
@NonNull String workspace)
Allows querying for details about specific registry model.
|
List<String> |
getRegistryModelNames(@NonNull String workspace)
Returns list of the registry model names registered in specified workspace.
|
Optional<String> |
getRegistryModelNotes(@NonNull String registryName,
@NonNull String workspace)
Returns notes associated with the registry model.
|
Optional<ModelVersionOverview> |
getRegistryModelVersion(@NonNull String registryName,
@NonNull String workspace,
@NonNull String version)
Allows querying for details about specific version of the registry model.
|
List<String> |
getRegistryModelVersions(@NonNull String registryName,
@NonNull String workspace)
Returns list of the version strings of the registry model.
|
ModelRegistryRecord |
registerModel(@NonNull Model model,
@NonNull String experimentKey)
Register model defined in the specified experiment in the Comet's model registry.
|
void |
updateRegistryModel(@NonNull String registryName,
@NonNull String workspace,
String newRegistryName) |
void |
updateRegistryModel(@NonNull String registryName,
@NonNull String workspace,
String newRegistryName,
String newDescription) |
void |
updateRegistryModel(@NonNull String registryName,
@NonNull String workspace,
String newRegistryName,
String newDescription,
boolean isPublic)
Updates the registry model with new values.
|
void |
updateRegistryModelNotes(@NonNull String notes,
@NonNull String registryName,
@NonNull String workspace)
Adds or updates notes associated with the registry model.
|
void |
updateRegistryModelVersion(String registryName,
String workspace,
String version,
String comments) |
void |
updateRegistryModelVersion(@NonNull String registryName,
@NonNull String workspace,
@NonNull String version,
String comments,
List<String> stages)
Updates the comments and stages of particular version of the registered model.
|
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 Optional<ModelOverview> getRegistryModelDetails(@NonNull @NonNull String registryName, @NonNull @NonNull String workspace)
CometApigetRegistryModelDetails in interface CometApiregistryName - the name of the model as in models' registry.workspace - the name of the model's workspace.ModelOverview with model version details.public Optional<ModelVersionOverview> getRegistryModelVersion(@NonNull @NonNull String registryName, @NonNull @NonNull String workspace, @NonNull @NonNull String version)
CometApigetRegistryModelVersion in interface CometApiregistryName - the name of the model as in models' registry.workspace - the name of the model's workspace.version - the version of the registry model to be returned.ModelOverview with model version details.public List<String> getRegistryModelNames(@NonNull @NonNull String workspace)
CometApigetRegistryModelNames in interface CometApiworkspace - the name of the workspace.public List<String> getRegistryModelVersions(@NonNull @NonNull String registryName, @NonNull @NonNull String workspace)
CometApigetRegistryModelVersions in interface CometApiregistryName - the name of the model as in models' registry.workspace - the name of the model's workspace.public void updateRegistryModelNotes(@NonNull
@NonNull String notes,
@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace)
CometApiupdateRegistryModelNotes in interface CometApinotes - the notes to be associated.registryName - the name of the model as in models' registry.workspace - the name of the model's workspace.public Optional<String> getRegistryModelNotes(@NonNull @NonNull String registryName, @NonNull @NonNull String workspace)
CometApigetRegistryModelNotes in interface CometApiregistryName - the name of the model as in models' registry.workspace - the name of the model's workspace.public void updateRegistryModel(@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace,
String newRegistryName,
String newDescription,
boolean isPublic)
throws ModelNotFoundException
CometApiupdateRegistryModel in interface CometApiregistryName - the current name of the model.workspace - the name of the model's workspace.newRegistryName - the new name for the model.newDescription - the new description of the model.isPublic - the new visibility status of the model.ModelNotFoundException - if model doesn't exists.public void updateRegistryModel(@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace,
String newRegistryName,
String newDescription)
throws ModelNotFoundException
updateRegistryModel in interface CometApiModelNotFoundExceptionpublic void updateRegistryModel(@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace,
String newRegistryName)
throws ModelNotFoundException
updateRegistryModel in interface CometApiModelNotFoundExceptionpublic void updateRegistryModelVersion(@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace,
@NonNull
@NonNull String version,
String comments,
List<String> stages)
CometApiupdateRegistryModelVersion in interface CometApiregistryName - the name of the model.workspace - the name of the model's workspace.version - the version of the registered model to be updated.comments - the comment to associate with new version.stages - the stages to associate with new version.public void updateRegistryModelVersion(String registryName, String workspace, String version, String comments)
updateRegistryModelVersion in interface CometApipublic void deleteRegistryModel(@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace)
CometApideleteRegistryModel in interface CometApiregistryName - the name of the model.workspace - the name of the model's workspace.public void deleteRegistryModelVersion(@NonNull
@NonNull String registryName,
@NonNull
@NonNull String workspace,
@NonNull
@NonNull String version)
CometApideleteRegistryModelVersion in interface CometApiregistryName - the name of the model.workspace - the name of the model's workspace.version - the version of the registered model to be deleted.public 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.