hydraflow 0.4.4__tar.gz → 0.4.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {hydraflow-0.4.4 → hydraflow-0.4.5}/PKG-INFO +24 -3
- {hydraflow-0.4.4 → hydraflow-0.4.5}/pyproject.toml +5 -3
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/context.py +3 -2
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/scripts/app.py +6 -4
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_app.py +1 -1
- {hydraflow-0.4.4 → hydraflow-0.4.5}/.devcontainer/devcontainer.json +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/.devcontainer/postCreate.sh +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/.devcontainer/starship.toml +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/.gitattributes +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/.gitignore +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/LICENSE +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/README.md +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/apps/quickstart.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/mkdocs.yml +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/__init__.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/asyncio.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/config.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/mlflow.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/param.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/progress.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/py.typed +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/run_collection.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/run_data.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/run_info.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/src/hydraflow/utils.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/__init__.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/integ/__init__.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/integ/app.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/scripts/__init__.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/scripts/progress.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/scripts/watch.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_asyncio.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_config.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_context.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_log_run.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_mlflow.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_param.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_progress.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_run_collection.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_run_data.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_run_info.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_version.py +0 -0
- {hydraflow-0.4.4 → hydraflow-0.4.5}/tests/test_watch.py +0 -0
@@ -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: MIT
|
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,20 +1,22 @@
|
|
1
1
|
[build-system]
|
2
|
-
requires = ["hatchling"]
|
2
|
+
requires = ["hatchling>=1.26.1"]
|
3
3
|
build-backend = "hatchling.build"
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "hydraflow"
|
7
|
-
version = "0.4.
|
7
|
+
version = "0.4.5"
|
8
8
|
description = "Hydraflow integrates Hydra and MLflow to manage and track machine learning experiments."
|
9
9
|
readme = "README.md"
|
10
|
-
license = {
|
10
|
+
license = { file = "LICENSE" }
|
11
11
|
authors = [{ name = "daizutabi", email = "daizutabi@gmail.com" }]
|
12
12
|
classifiers = [
|
13
13
|
"Development Status :: 4 - Beta",
|
14
|
+
"License :: OSI Approved :: MIT License",
|
14
15
|
"Programming Language :: Python",
|
15
16
|
"Programming Language :: Python :: 3.10",
|
16
17
|
"Programming Language :: Python :: 3.11",
|
17
18
|
"Programming Language :: Python :: 3.12",
|
19
|
+
"Programming Language :: Python :: 3.13",
|
18
20
|
]
|
19
21
|
requires-python = ">=3.10"
|
20
22
|
dependencies = [
|
@@ -69,8 +69,9 @@ def log_run(
|
|
69
69
|
mlflow.log_artifact(local_path)
|
70
70
|
|
71
71
|
try:
|
72
|
-
|
73
|
-
|
72
|
+
yield
|
73
|
+
# with watch(log_artifact, output_dir, ignore_log=False):
|
74
|
+
# yield
|
74
75
|
|
75
76
|
except Exception as e:
|
76
77
|
msg = f"Error during log_run: {e}"
|
@@ -52,9 +52,11 @@ def app(cfg: MySQLConfig):
|
|
52
52
|
mlflow.log_text("A " + artifact_dir.as_posix(), "artifact_dir.txt")
|
53
53
|
mlflow.log_text("B " + output_dir.as_posix(), "output_dir.txt")
|
54
54
|
|
55
|
-
with hydraflow.watch(callback, ignore_patterns=["b.txt"]):
|
56
|
-
|
57
|
-
|
55
|
+
# with hydraflow.watch(callback, ignore_patterns=["b.txt"]):
|
56
|
+
# (artifact_dir / "a.txt").write_text("abc")
|
57
|
+
# time.sleep(0.1)
|
58
|
+
|
59
|
+
(artifact_dir / "a.txt").write_text("abc")
|
58
60
|
|
59
61
|
mlflow.log_metric("m", cfg.port + 1, 1)
|
60
62
|
if cfg.host == "x":
|
@@ -71,7 +73,7 @@ def app(cfg: MySQLConfig):
|
|
71
73
|
def callback(path: Path):
|
72
74
|
log.info(f"WATCH, {path.as_posix()}")
|
73
75
|
m = len(path.read_text()) # len("abc") == 3
|
74
|
-
mlflow.log_metric("watch", m, 1, synchronous=True)
|
76
|
+
# mlflow.log_metric("watch", m, 1, synchronous=True)
|
75
77
|
|
76
78
|
|
77
79
|
if __name__ == "__main__":
|
@@ -100,7 +100,7 @@ def test_app_data_params(rc: RunCollection):
|
|
100
100
|
def test_app_data_metrics(rc: RunCollection):
|
101
101
|
metrics = rc.data.metrics
|
102
102
|
assert metrics["m"] == [11, 12, 2, 3]
|
103
|
-
assert metrics["watch"] == [3, 3, 3, 3]
|
103
|
+
# assert metrics["watch"] == [3, 3, 3, 3] # noqa: ERA001
|
104
104
|
|
105
105
|
|
106
106
|
def test_app_data_config(rc: RunCollection):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|