hydraflow 0.5.0__tar.gz → 0.5.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. {hydraflow-0.5.0 → hydraflow-0.5.1}/PKG-INFO +2 -2
  2. {hydraflow-0.5.0 → hydraflow-0.5.1}/README.md +1 -1
  3. {hydraflow-0.5.0 → hydraflow-0.5.1}/pyproject.toml +1 -1
  4. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/run_collection.py +2 -2
  5. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_app.py +3 -3
  6. {hydraflow-0.5.0 → hydraflow-0.5.1}/.devcontainer/devcontainer.json +0 -0
  7. {hydraflow-0.5.0 → hydraflow-0.5.1}/.devcontainer/postCreate.sh +0 -0
  8. {hydraflow-0.5.0 → hydraflow-0.5.1}/.devcontainer/starship.toml +0 -0
  9. {hydraflow-0.5.0 → hydraflow-0.5.1}/.gitattributes +0 -0
  10. {hydraflow-0.5.0 → hydraflow-0.5.1}/.gitignore +0 -0
  11. {hydraflow-0.5.0 → hydraflow-0.5.1}/LICENSE +0 -0
  12. {hydraflow-0.5.0 → hydraflow-0.5.1}/apps/quickstart.py +0 -0
  13. {hydraflow-0.5.0 → hydraflow-0.5.1}/mkdocs.yml +0 -0
  14. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/__init__.py +0 -0
  15. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/config.py +0 -0
  16. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/context.py +0 -0
  17. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/mlflow.py +0 -0
  18. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/param.py +0 -0
  19. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/py.typed +0 -0
  20. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/run_data.py +0 -0
  21. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/run_info.py +0 -0
  22. {hydraflow-0.5.0 → hydraflow-0.5.1}/src/hydraflow/utils.py +0 -0
  23. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/__init__.py +0 -0
  24. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/apps/__init__.py +0 -0
  25. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/apps/app.py +0 -0
  26. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/conftest.py +0 -0
  27. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_config.py +0 -0
  28. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_context.py +0 -0
  29. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_log_run.py +0 -0
  30. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_mlflow.py +0 -0
  31. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_param.py +0 -0
  32. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_run_collection.py +0 -0
  33. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_run_data.py +0 -0
  34. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_run_info.py +0 -0
  35. {hydraflow-0.5.0 → hydraflow-0.5.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydraflow
3
- Version: 0.5.0
3
+ Version: 0.5.1
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
@@ -111,7 +111,7 @@ def my_app(cfg: MySQLConfig) -> None:
111
111
  hydraflow.set_experiment()
112
112
 
113
113
  # Automatically log Hydra config as params.
114
- with hydraflow.start_run():
114
+ with hydraflow.start_run(cfg):
115
115
  # Your app code below.
116
116
 
117
117
 
@@ -69,7 +69,7 @@ def my_app(cfg: MySQLConfig) -> None:
69
69
  hydraflow.set_experiment()
70
70
 
71
71
  # Automatically log Hydra config as params.
72
- with hydraflow.start_run():
72
+ with hydraflow.start_run(cfg):
73
73
  # Your app code below.
74
74
 
75
75
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "hydraflow"
7
- version = "0.5.0"
7
+ version = "0.5.1"
8
8
  description = "Hydraflow integrates Hydra and MLflow to manage and track machine learning experiments."
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -609,8 +609,8 @@ class RunCollection:
609
609
 
610
610
  def sort(
611
611
  self,
612
- key: Callable[[Run], Any] | None = None,
613
612
  *,
613
+ key: Callable[[Run], Any] | None = None,
614
614
  reverse: bool = False,
615
615
  ) -> None:
616
616
  """Sort the runs in the collection.
@@ -652,7 +652,7 @@ class RunCollection:
652
652
 
653
653
  return [v[0] for v in values]
654
654
 
655
- def sort_by(
655
+ def sorted(
656
656
  self,
657
657
  names: str | list[str],
658
658
  *,
@@ -187,11 +187,11 @@ def test_values(rc: RunCollection):
187
187
  assert values == [("x", 1), ("x", 2), ("y", 1), ("y", 2)]
188
188
 
189
189
 
190
- def test_sort_by(rc: RunCollection):
191
- sorted = rc.sort_by("host", reverse=True)
190
+ def test_sorted(rc: RunCollection):
191
+ sorted = rc.sorted("host", reverse=True)
192
192
  assert sorted.values(["host", "port"]) == [("y", 1), ("y", 2), ("x", 1), ("x", 2)]
193
193
 
194
- sorted = rc.sort_by(["host", "port"], reverse=True)
194
+ sorted = rc.sorted(["host", "port"], reverse=True)
195
195
  assert sorted.values(["host", "port"]) == [("y", 2), ("y", 1), ("x", 2), ("x", 1)]
196
196
 
197
197
 
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