hydraflow 0.18.0__py3-none-any.whl → 0.18.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hydraflow/core/collection.py +8 -2
- {hydraflow-0.18.0.dist-info → hydraflow-0.18.2.dist-info}/METADATA +1 -4
- {hydraflow-0.18.0.dist-info → hydraflow-0.18.2.dist-info}/RECORD +6 -6
- {hydraflow-0.18.0.dist-info → hydraflow-0.18.2.dist-info}/WHEEL +0 -0
- {hydraflow-0.18.0.dist-info → hydraflow-0.18.2.dist-info}/entry_points.txt +0 -0
- {hydraflow-0.18.0.dist-info → hydraflow-0.18.2.dist-info}/licenses/LICENSE +0 -0
hydraflow/core/collection.py
CHANGED
@@ -17,6 +17,7 @@ from .group_by import GroupBy
|
|
17
17
|
|
18
18
|
if TYPE_CHECKING:
|
19
19
|
from collections.abc import Callable, Iterator
|
20
|
+
from re import Pattern, _FlagsType
|
20
21
|
from typing import Any, Self
|
21
22
|
|
22
23
|
from numpy.typing import NDArray
|
@@ -807,9 +808,10 @@ class Collection[I](Sequence[I]):
|
|
807
808
|
def match(
|
808
809
|
self,
|
809
810
|
key: str,
|
810
|
-
pattern: str |
|
811
|
+
pattern: str | Pattern[str],
|
811
812
|
*,
|
812
813
|
default: Any | Callable[[I], Any] = MISSING,
|
814
|
+
flags: _FlagsType = 0,
|
813
815
|
) -> Callable[[I], bool]:
|
814
816
|
"""Create a predicate function that checks if an attribute matches a pattern.
|
815
817
|
|
@@ -817,12 +819,16 @@ class Collection[I](Sequence[I]):
|
|
817
819
|
key (str): The name of the attribute to check.
|
818
820
|
pattern (str | re.Pattern): The pattern to check for.
|
819
821
|
default (Any | Callable[[I], Any], optional): The default value.
|
822
|
+
flags (re.RegexFlag, optional): Flags for the regex pattern.
|
820
823
|
|
821
824
|
Returns:
|
822
825
|
Callable[[I], bool]: A predicate function for filtering.
|
823
826
|
|
824
827
|
"""
|
825
|
-
return
|
828
|
+
return (
|
829
|
+
lambda i: re.match(pattern, str(self._get(i, key, default)), flags)
|
830
|
+
is not None
|
831
|
+
)
|
826
832
|
|
827
833
|
|
828
834
|
def to_hashable(value: Any) -> Hashable:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hydraflow
|
3
|
-
Version: 0.18.
|
3
|
+
Version: 0.18.2
|
4
4
|
Summary: HydraFlow seamlessly integrates Hydra and MLflow to streamline ML experiment management, combining Hydra's configuration management with MLflow's tracking capabilities.
|
5
5
|
Project-URL: Documentation, https://daizutabi.github.io/hydraflow/
|
6
6
|
Project-URL: Source, https://github.com/daizutabi/hydraflow
|
@@ -118,9 +118,6 @@ def app(run: Run, cfg: Config) -> None:
|
|
118
118
|
# Your experiment code here
|
119
119
|
print(f"Running with width={cfg.width}, height={cfg.height}")
|
120
120
|
|
121
|
-
# Log metrics
|
122
|
-
hydraflow.log_metric("area", cfg.width * cfg.height)
|
123
|
-
|
124
121
|
if __name__ == "__main__":
|
125
122
|
app()
|
126
123
|
```
|
@@ -2,7 +2,7 @@ hydraflow/__init__.py,sha256=_cLLokEv0pUlwvG8RMnjOwCTtDQBs0-RgGbtDk5m_Xg,794
|
|
2
2
|
hydraflow/cli.py,sha256=3rGr___wwp8KazjLGQ7JO_IgAMqLyMlcVSs_QJK7g0Y,3135
|
3
3
|
hydraflow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
hydraflow/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
hydraflow/core/collection.py,sha256=
|
5
|
+
hydraflow/core/collection.py,sha256=s1XtsV1AU5Cr6XutMfphRA60uhompDiQQVSgb_Xz-nM,30437
|
6
6
|
hydraflow/core/context.py,sha256=6vpwe0Xfl6mzh2hHLE-4uB9Hjew-CK4pA0KFihQ80U8,4168
|
7
7
|
hydraflow/core/group_by.py,sha256=Pnw-oA5aXHeRG9lMLz-bKc8drqQ8LIRsWzvVn153iyQ,5488
|
8
8
|
hydraflow/core/io.py,sha256=B3-jPuJWttRgpbIpy_XA-Z2qpXzNF1ATwyYEwA7Pv3w,5172
|
@@ -18,8 +18,8 @@ hydraflow/executor/job.py,sha256=6QeJ18OMeocXeM04rCYL46GgArfX1SvZs9_4HTomTgE,543
|
|
18
18
|
hydraflow/executor/parser.py,sha256=RxP8qpDaJ8VLqZ51VlPFyVitWctObhkE_3iPIsY66Cs,14610
|
19
19
|
hydraflow/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
20
|
hydraflow/utils/progress.py,sha256=a-CHvioyGCeiUKawqPcV8i1nhzunm5-r5AlLbzd5epw,3048
|
21
|
-
hydraflow-0.18.
|
22
|
-
hydraflow-0.18.
|
23
|
-
hydraflow-0.18.
|
24
|
-
hydraflow-0.18.
|
25
|
-
hydraflow-0.18.
|
21
|
+
hydraflow-0.18.2.dist-info/METADATA,sha256=ompvUz-MANwKrTj9N1TGktmS0FHpirfmMTREgoyTh6o,7433
|
22
|
+
hydraflow-0.18.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
23
|
+
hydraflow-0.18.2.dist-info/entry_points.txt,sha256=XI0khPbpCIUo9UPqkNEpgh-kqK3Jy8T7L2VCWOdkbSM,48
|
24
|
+
hydraflow-0.18.2.dist-info/licenses/LICENSE,sha256=IGdDrBPqz1O0v_UwCW-NJlbX9Hy9b3uJ11t28y2srmY,1062
|
25
|
+
hydraflow-0.18.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|