public interface CometApi extends Closeable
Make sure to call CometApi.close() after finished with usage to release underlying resources.
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRegistryModel(String registryName,
String workspace)
Deletes registered model with given name.
|
void |
deleteRegistryModelVersion(String registryName,
String workspace,
String version)
Deletes specific version of the registered model with given name.
|
ModelDownloadInfo |
downloadRegistryModel(Path outputPath,
String registryName,
String workspace) |
ModelDownloadInfo |
downloadRegistryModel(Path outputPath,
String registryName,
String workspace,
DownloadModelOptions options)
Downloads and saves all files from the registered model.
|
List<ExperimentMetadata> |
getAllExperiments(String projectId)
Gets metadata of all experiments created under specified project id.
|
List<Project> |
getAllProjects(String workspaceName)
Gets all projects under specified workspace name.
|
List<String> |
getAllWorkspaces()
Gets all workspaces available for current API key.
|
Optional<ModelOverview> |
getRegistryModelDetails(String registryName,
String workspace)
Allows querying for details about specific registry model.
|
List<String> |
getRegistryModelNames(String workspace)
Returns list of the registry model names registered in specified workspace.
|
Optional<String> |
getRegistryModelNotes(String registryName,
String workspace)
Returns notes associated with the registry model.
|
Optional<ModelVersionOverview> |
getRegistryModelVersion(String registryName,
String workspace,
String version)
Allows querying for details about specific version of the registry model.
|
List<String> |
getRegistryModelVersions(String registryName,
String workspace)
Returns list of the version strings of the registry model.
|
ModelRegistryRecord |
registerModel(Model model,
String experimentKey)
Register model defined in the specified experiment in the Comet's model registry.
|
void |
updateRegistryModel(String registryName,
String workspace,
String newRegistryName) |
void |
updateRegistryModel(String registryName,
String workspace,
String newRegistryName,
String newDescription) |
void |
updateRegistryModel(String registryName,
String workspace,
String newRegistryName,
String newDescription,
boolean isPublic)
Updates the registry model with new values.
|
void |
updateRegistryModelNotes(String notes,
String registryName,
String workspace)
Adds or updates notes associated with the registry model.
|
void |
updateRegistryModelVersion(String registryName,
String workspace,
String version,
String comments) |
void |
updateRegistryModelVersion(String registryName,
String workspace,
String version,
String comments,
List<String> stages)
Updates the comments and stages of particular version of the registered model.
|
List<String> getAllWorkspaces()
List<Project> getAllProjects(String workspaceName)
workspaceName - workspace nameList<ExperimentMetadata> getAllExperiments(String projectId)
projectId - the ID of the project.ModelRegistryRecord registerModel(Model model, String experimentKey)
model - the Model to be registered.experimentKey - the identifier of the experiment where model assets was logged.ModelRegistryRecord instance holding information about model registry record.ModelDownloadInfo downloadRegistryModel(Path outputPath, String registryName, String workspace, DownloadModelOptions options) throws IOException
outputPath - 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.ModelDownloadInfo downloadRegistryModel(Path outputPath, String registryName, String workspace) throws IOException
IOExceptionOptional<ModelOverview> getRegistryModelDetails(String registryName, String workspace)
registryName - the name of the model as in models' registry.workspace - the name of the model's workspace.ModelOverview with model version details.Optional<ModelVersionOverview> getRegistryModelVersion(String registryName, String workspace, String version)
registryName - 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.List<String> getRegistryModelNames(String workspace)
workspace - the name of the workspace.List<String> getRegistryModelVersions(String registryName, String workspace)
registryName - the name of the model as in models' registry.workspace - the name of the model's workspace.void updateRegistryModelNotes(String notes, String registryName, String workspace)
notes - the notes to be associated.registryName - the name of the model as in models' registry.workspace - the name of the model's workspace.Optional<String> getRegistryModelNotes(String registryName, String workspace)
registryName - the name of the model as in models' registry.workspace - the name of the model's workspace.void updateRegistryModel(String registryName, String workspace, String newRegistryName, String newDescription, boolean isPublic) throws ModelNotFoundException
registryName - 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.void updateRegistryModel(String registryName, String workspace, String newRegistryName, String newDescription) throws ModelNotFoundException
ModelNotFoundExceptionvoid updateRegistryModel(String registryName, String workspace, String newRegistryName) throws ModelNotFoundException
ModelNotFoundExceptionvoid updateRegistryModelVersion(String registryName, String workspace, String version, String comments, List<String> stages)
registryName - 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.void updateRegistryModelVersion(String registryName, String workspace, String version, String comments)
void deleteRegistryModel(String registryName, String workspace)
registryName - the name of the model.workspace - the name of the model's workspace.void deleteRegistryModelVersion(String registryName, String workspace, String version)
registryName - the name of the model.workspace - the name of the model's workspace.version - the version of the registered model to be deleted.Copyright © 2022. All rights reserved.