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 |
|---|---|
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.
|
ModelRegistryRecord |
registerModel(Model model,
String experimentKey)
Register model defined in the specified experiment in the Comet's model registry.
|
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
IOExceptionCopyright © 2022. All rights reserved.