hydraflow 0.4.3__py3-none-any.whl → 0.4.5__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- hydraflow/context.py +7 -5
- {hydraflow-0.4.3.dist-info → hydraflow-0.4.5.dist-info}/METADATA +24 -3
- {hydraflow-0.4.3.dist-info → hydraflow-0.4.5.dist-info}/RECORD +5 -5
- {hydraflow-0.4.3.dist-info → hydraflow-0.4.5.dist-info}/WHEEL +1 -1
- {hydraflow-0.4.3.dist-info → hydraflow-0.4.5.dist-info}/licenses/LICENSE +0 -0
hydraflow/context.py
CHANGED
@@ -28,7 +28,7 @@ log = logging.getLogger(__name__)
|
|
28
28
|
|
29
29
|
@contextmanager
|
30
30
|
def log_run(
|
31
|
-
config: object,
|
31
|
+
config: object | None,
|
32
32
|
*,
|
33
33
|
synchronous: bool | None = None,
|
34
34
|
) -> Iterator[None]:
|
@@ -54,7 +54,8 @@ def log_run(
|
|
54
54
|
```
|
55
55
|
|
56
56
|
"""
|
57
|
-
|
57
|
+
if config:
|
58
|
+
log_params(config, synchronous=synchronous)
|
58
59
|
|
59
60
|
hc = HydraConfig.get()
|
60
61
|
output_dir = Path(hc.runtime.output_dir)
|
@@ -68,8 +69,9 @@ def log_run(
|
|
68
69
|
mlflow.log_artifact(local_path)
|
69
70
|
|
70
71
|
try:
|
71
|
-
|
72
|
-
|
72
|
+
yield
|
73
|
+
# with watch(log_artifact, output_dir, ignore_log=False):
|
74
|
+
# yield
|
73
75
|
|
74
76
|
except Exception as e:
|
75
77
|
msg = f"Error during log_run: {e}"
|
@@ -139,7 +141,7 @@ def start_run( # noqa: PLR0913
|
|
139
141
|
description=description,
|
140
142
|
log_system_metrics=log_system_metrics,
|
141
143
|
) as run,
|
142
|
-
log_run(config, synchronous=synchronous),
|
144
|
+
log_run(config if run_id is None else None, synchronous=synchronous),
|
143
145
|
):
|
144
146
|
yield run
|
145
147
|
|
@@ -1,18 +1,39 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: hydraflow
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.5
|
4
4
|
Summary: Hydraflow integrates Hydra and MLflow to manage and track machine learning experiments.
|
5
5
|
Project-URL: Documentation, https://github.com/daizutabi/hydraflow
|
6
6
|
Project-URL: Source, https://github.com/daizutabi/hydraflow
|
7
7
|
Project-URL: Issues, https://github.com/daizutabi/hydraflow/issues
|
8
8
|
Author-email: daizutabi <daizutabi@gmail.com>
|
9
|
-
License
|
10
|
-
|
9
|
+
License: MIT License
|
10
|
+
|
11
|
+
Copyright (c) 2024 Daizu
|
12
|
+
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
15
|
+
in the Software without restriction, including without limitation the rights
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
18
|
+
furnished to do so, subject to the following conditions:
|
19
|
+
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
21
|
+
copies or substantial portions of the Software.
|
22
|
+
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
29
|
+
SOFTWARE.
|
11
30
|
Classifier: Development Status :: 4 - Beta
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
12
32
|
Classifier: Programming Language :: Python
|
13
33
|
Classifier: Programming Language :: Python :: 3.10
|
14
34
|
Classifier: Programming Language :: Python :: 3.11
|
15
35
|
Classifier: Programming Language :: Python :: 3.12
|
36
|
+
Classifier: Programming Language :: Python :: 3.13
|
16
37
|
Requires-Python: >=3.10
|
17
38
|
Requires-Dist: hydra-core>=1.3
|
18
39
|
Requires-Dist: joblib
|
@@ -1,7 +1,7 @@
|
|
1
1
|
hydraflow/__init__.py,sha256=VbrHKs2Cg93QJ8K9WHYxkXmzOpb8o9ugiwV-mXDT0JE,908
|
2
2
|
hydraflow/asyncio.py,sha256=-i1C8KAmNDImrjHnk92Csaa1mpjdK8Vp4ZVaQV-l94s,6634
|
3
3
|
hydraflow/config.py,sha256=MNX9da5bPVDcjnpji7Cm9ndK6ura92pt361m4PRh6_E,4326
|
4
|
-
hydraflow/context.py,sha256=
|
4
|
+
hydraflow/context.py,sha256=kz5SvjvjN7Z_2WjHYpO9SWwDfsPT_UeZcsm8pDymhjs,8836
|
5
5
|
hydraflow/mlflow.py,sha256=kWVK_Xw2hkRnTg33jSP3VW13UZF6_hBGhN52mPmLgvk,8753
|
6
6
|
hydraflow/param.py,sha256=c5sc6NwD6DKwZzVwprXzZD5FSi6qRgSHkc6TXBKQEdg,4502
|
7
7
|
hydraflow/progress.py,sha256=zvKX1HCN8_xDOsgYOEcLLhkhdPdep-U8vHrc0XZ-6SQ,6163
|
@@ -10,7 +10,7 @@ hydraflow/run_collection.py,sha256=eBNGwtvkRKpOEqcwDUS1tkIFuxY_PVi6SEzzd1PwG5s,2
|
|
10
10
|
hydraflow/run_data.py,sha256=qeFX1iRvNAorXA9QQIjzr0o2_82TI44eZKp7llKG8GI,1549
|
11
11
|
hydraflow/run_info.py,sha256=sMXOo20ClaRIommMEzuAbO_OrcXx7M1Yt4FMV7spxz0,998
|
12
12
|
hydraflow/utils.py,sha256=Xq78F2iOkgi9JnCYfX1reQw_Y9K6o8oNYBDEwrf18cI,3552
|
13
|
-
hydraflow-0.4.
|
14
|
-
hydraflow-0.4.
|
15
|
-
hydraflow-0.4.
|
16
|
-
hydraflow-0.4.
|
13
|
+
hydraflow-0.4.5.dist-info/METADATA,sha256=SOxec-saE-PWA4ViuKI1wAMI7EARLfmOPZv9t6XzInI,5127
|
14
|
+
hydraflow-0.4.5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
15
|
+
hydraflow-0.4.5.dist-info/licenses/LICENSE,sha256=IGdDrBPqz1O0v_UwCW-NJlbX9Hy9b3uJ11t28y2srmY,1062
|
16
|
+
hydraflow-0.4.5.dist-info/RECORD,,
|
File without changes
|