You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize the implementation of uri & Fix async log bug (#1364)
* Optimize the implementation of uri
* remove redundant func
* Set the right order of _set_client_uri
* Update qlib/workflow/expm.py
* Simplify client & add test.Add docs; Fix async bug
* Fix comments & pylint
* Improve README
Copy file name to clipboardExpand all lines: qlib/workflow/expm.py
+50-55Lines changed: 50 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -15,23 +15,32 @@
15
15
from ..logimportget_module_logger
16
16
from ..utils.exceptionsimportExpAlreadyExistError
17
17
18
+
18
19
logger=get_module_logger("workflow")
19
20
20
21
21
22
classExpManager:
22
23
"""
23
-
This is the `ExpManager` class for managing experiments. The API is designed similar to mlflow.
24
-
(The link: https://mlflow.org/docs/latest/python_api/mlflow.html)
24
+
This is the `ExpManager` class for managing experiments. The API is designed similar to mlflow.
25
+
(The link: https://mlflow.org/docs/latest/python_api/mlflow.html)
26
+
27
+
The `ExpManager` is expected to be a singleton (btw, we can have multiple `Experiment`s with different uri. user can get different experiments from different uri, and then compare records of them). Global Config (i.e. `C`) is also a singleton.
28
+
So we try to align them together. They share the same variable, which is called **default uri**. Please refer to `ExpManager.default_uri` for details of variable sharing.
29
+
30
+
When the user starts an experiment, the user may want to set the uri to a specific uri (it will override **default uri** during this period), and then unset the **specific uri** and fallback to the **default uri**. `ExpManager._active_exp_uri` is that **specific uri**.
0 commit comments