Exemplo n.º 1
0
 def delete_experiment(self, experiment_id):
     experiment_dirs = self._get_experiment_path(experiment_id,
                                                 ViewType.ACTIVE_ONLY)
     if len(experiment_dirs) == 0:
         raise Exception("Could not find experiment with ID %s" %
                         experiment_id)
     mv(experiment_dirs[0], self.trash_folder)
Exemplo n.º 2
0
 def delete_experiment(self, experiment_id):
     experiment_dir = self._get_experiment_path(experiment_id,
                                                ViewType.ACTIVE_ONLY)
     if experiment_dir is None:
         raise MlflowException(
             "Could not find experiment with ID %s" % experiment_id,
             databricks_pb2.RESOURCE_DOES_NOT_EXIST)
     mv(experiment_dir, self.trash_folder)
Exemplo n.º 3
0
 def restore_experiment(self, experiment_id):
     experiment_dir = self._get_experiment_path(experiment_id, ViewType.DELETED_ONLY)
     if experiment_dir is None:
         raise MlflowException("Could not find deleted experiment with ID %d" % experiment_id,
                               databricks_pb2.RESOURCE_DOES_NOT_EXIST)
     conflict_experiment = self._get_experiment_path(experiment_id, ViewType.ACTIVE_ONLY)
     if conflict_experiment is not None:
         raise MlflowException(
             "Cannot restore eperiment with ID %d. "
             "An experiment with same ID already exists." % experiment_id,
             databricks_pb2.RESOURCE_ALREADY_EXISTS)
     mv(experiment_dir, self.root_directory)
Exemplo n.º 4
0
 def restore_experiment(self, experiment_id):
     experiment_dirs = self._get_experiment_path(experiment_id,
                                                 ViewType.DELETED_ONLY)
     if len(experiment_dirs) == 0:
         raise Exception("Could not find deleted experiment with ID %d" %
                         experiment_id)
     conflict_experiment = self._get_experiment_path(
         experiment_id, ViewType.ACTIVE_ONLY)
     if len(conflict_experiment) > 0:
         raise Exception("Cannot restore eperiment with ID %d. "
                         "An experiment with same ID already exists." %
                         experiment_id)
     mv(experiment_dirs[0], self.root_directory)