Add template for reading experiment (#48)

* Add template for reading experiment

* add code

* read latest exp

---------

Co-authored-by: Young <afe.young@gmail.com>
This commit is contained in:
Linlang
2024-07-09 20:49:51 +08:00
committed by GitHub
parent 7350d9aa1f
commit 828a624238
2 changed files with 59 additions and 2 deletions
+6 -2
View File
@@ -45,10 +45,14 @@ class EnvUtils(unittest.TestCase):
qtde.prepare() # you can prepare for multiple times. It is expected to handle it correctly
# the stdout are returned as result
result = qtde.run(local_path=str(DIRNAME / "env_tpl"), entry="qrun conf.yaml")
mlrun_p = DIRNAME / "env_tpl" / "mlruns"
mlrun_p = DIRNAME / "env_tpl" / "mlruns"
self.assertTrue(mlrun_p.exists(), f"Expected output file {mlrun_p} not found")
# read experiment
result = qtde.run(local_path=str(DIRNAME / "env_tpl"), entry="python read_exp.py")
print(result)
if __name__ == "__main__":
unittest.main()