Пример #1
0
 def __init__(self):
     self._path = Archive.check_for_home_directory(self)
Пример #2
0
 def delete_settings(self, run_id):
     if self.validate_run(run_id):
         return Archive.delete_settings(run_id)
Пример #3
0
 def delete_output(self, run_id):
     if self.validate_run(run_id):
         return Archive.delete_output(run_id)
Пример #4
0
 def get_settings(self, run_id):
     if self.validate_run(run_id):
         return Archive.get_settings(run_id)
Пример #5
0
 def get_output(self, run_id):
     if self.validate_run(run_id):
         return Archive.get_output(run_id)
Пример #6
0
def test_get_version(test_file):
    data = Archive.get_version(Archive, 'test', '1', test_file[:-53])

    assert data == ['test']
Пример #7
0
 def delete_model(self, model):
     if self.validate_model(model):
         return Archive.delete_model(model, self._path)
Пример #8
0
 def delete_run(self, run_id):
     if self.validate_run(run_id):
         return Archive.delete_run(Archive, run_id, self._path)
Пример #9
0
 def delete_experiment(self, model, version, experiment):
     if self.validate_model(model) and self.validate_version(
             version) and self.validate_experiment(experiment):
         return Archive.delete_experiment(model, version, experiment,
                                          self._path)
Пример #10
0
 def get_version(self, model, version):
     if self.validate_model(model) and self.validate_version(version):
         versions = Archive.get_version(Archive, model, version, self._path)
         return versions
Пример #11
0
 def get_model(self, model):
     if self.validate_model(model):
         mdl = Archive.get_model(Archive, model, self._path)
         return mdl
Пример #12
0
 def get_experiment(self, model, version, experiment):
     if self.validate_model(model) and self.validate_version(
             version) and self.validate_experiment(experiment):
         exp = Archive.get_experiment(Archive, model, version, experiment,
                                      self._path)
         return exp
Пример #13
0
def test_get_run(test_file):
    data = Archive.get_run('12345678', test_file[:-53])

    assert data == [[['loss', 255]]]
Пример #14
0
def test_get_experiment(test_file):
    data = Archive.get_experiment(Archive, 'test', '1', 'test',
                                  test_file[:-53])

    assert data == ['12345678']
Пример #15
0
 def get_run(self, run_id):
     if self.validate_run(run_id):
         run = Archive.get_run(run_id, self._path)
         return self.structure_metrics(run)
Пример #16
0
 def delete_version(self, model, version):
     if self.validate_model(model) and self.validate_version(version):
         return Archive.delete_version(model, version, self._path)
Пример #17
0
 def get_all_models(self):
     models = Archive.get_all_models(Archive, self._path)
     return models
Пример #18
0
def test_get_model(test_file):
    data = Archive.get_model(Archive, 'test', test_file[:-53])

    assert data == ['1']