toolchemy 0.2.193__py3-none-any.whl → 0.2.194__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.
- toolchemy/ai/trackers/common.py +18 -0
- toolchemy/ai/trackers/mlflow_tracker.py +10 -0
- toolchemy/ai/trackers/neptune_tracker.py +4 -0
- {toolchemy-0.2.193.dist-info → toolchemy-0.2.194.dist-info}/METADATA +1 -1
- {toolchemy-0.2.193.dist-info → toolchemy-0.2.194.dist-info}/RECORD +8 -8
- {toolchemy-0.2.193.dist-info → toolchemy-0.2.194.dist-info}/WHEEL +0 -0
- {toolchemy-0.2.193.dist-info → toolchemy-0.2.194.dist-info}/entry_points.txt +0 -0
- {toolchemy-0.2.193.dist-info → toolchemy-0.2.194.dist-info}/licenses/LICENSE +0 -0
toolchemy/ai/trackers/common.py
CHANGED
|
@@ -11,11 +11,21 @@ class ITracker(ABC):
|
|
|
11
11
|
def experiment_name(self) -> str:
|
|
12
12
|
pass
|
|
13
13
|
|
|
14
|
+
@property
|
|
15
|
+
@abstractmethod
|
|
16
|
+
def experiment_id(self) -> str:
|
|
17
|
+
pass
|
|
18
|
+
|
|
14
19
|
@property
|
|
15
20
|
@abstractmethod
|
|
16
21
|
def run_name(self) -> str:
|
|
17
22
|
pass
|
|
18
23
|
|
|
24
|
+
@property
|
|
25
|
+
@abstractmethod
|
|
26
|
+
def run_id(self) -> str:
|
|
27
|
+
pass
|
|
28
|
+
|
|
19
29
|
@abstractmethod
|
|
20
30
|
def start_run(
|
|
21
31
|
self, run_id: str = None,
|
|
@@ -101,6 +111,10 @@ class TrackerBase(ITracker, ABC):
|
|
|
101
111
|
def experiment_name(self) -> str:
|
|
102
112
|
return self._experiment_name
|
|
103
113
|
|
|
114
|
+
@property
|
|
115
|
+
def experiment_id(self) -> str:
|
|
116
|
+
return self._experiment_name
|
|
117
|
+
|
|
104
118
|
def get_max_metric_value(self, name: str) -> float:
|
|
105
119
|
return max(self._metrics[name], key=lambda el: el['value'])
|
|
106
120
|
|
|
@@ -166,6 +180,10 @@ class InMemoryTracker(TrackerBase):
|
|
|
166
180
|
def run_name(self) -> str:
|
|
167
181
|
return self._run_name
|
|
168
182
|
|
|
183
|
+
@property
|
|
184
|
+
def run_id(self) -> str:
|
|
185
|
+
return self._run_name
|
|
186
|
+
|
|
169
187
|
def start_run(
|
|
170
188
|
self, run_id: str = None,
|
|
171
189
|
run_name: str = None,
|
|
@@ -39,6 +39,16 @@ class MLFlowTracker(TrackerBase):
|
|
|
39
39
|
raise RuntimeError("There is no active run!")
|
|
40
40
|
return self._active_run.info.run_name
|
|
41
41
|
|
|
42
|
+
@property
|
|
43
|
+
def run_id(self) -> str:
|
|
44
|
+
if not self._active_run:
|
|
45
|
+
raise RuntimeError("There is no active run!")
|
|
46
|
+
return self._active_run.info.run_id
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def experiment_id(self) -> str:
|
|
50
|
+
return self._experiment_id
|
|
51
|
+
|
|
42
52
|
def start_run(
|
|
43
53
|
self, run_id: str = None,
|
|
44
54
|
run_name: str = None,
|
|
@@ -10,9 +10,9 @@ toolchemy/ai/clients/pricing.py,sha256=FuAuarQIaLl-e6KLzLbiWawWpqjY_kV4poO_qiTuH
|
|
|
10
10
|
toolchemy/ai/clients/whisper_client.py,sha256=AQcY2FiGLu0JTYw0zzjjH-7WyZ6NbQWrtxFa6iYhR4M,5252
|
|
11
11
|
toolchemy/ai/prompter.py,sha256=2Vf00d3pHUC1giG39REAn0YhuFUqxHXAQVNr5PCQQJ0,5367
|
|
12
12
|
toolchemy/ai/trackers/__init__.py,sha256=FUv2NuGSmCpDrbE7rmeG0VmQr9rJRC-Y_D0MuQa0e-M,214
|
|
13
|
-
toolchemy/ai/trackers/common.py,sha256=
|
|
14
|
-
toolchemy/ai/trackers/mlflow_tracker.py,sha256=
|
|
15
|
-
toolchemy/ai/trackers/neptune_tracker.py,sha256=
|
|
13
|
+
toolchemy/ai/trackers/common.py,sha256=tEYQv1OqcyqMVEfBP0tRse3V9f-gypOrfNBj1U9IcsE,6525
|
|
14
|
+
toolchemy/ai/trackers/mlflow_tracker.py,sha256=pzxIBRdODtA4qp5CezSZHY1b1oMSH_Jpo8xjbA1PDO4,8522
|
|
15
|
+
toolchemy/ai/trackers/neptune_tracker.py,sha256=GIbkLmHAzzO8Q7FuCmGf--y2NTEfcjDF9CVqqgmWzVg,4712
|
|
16
16
|
toolchemy/db/lightdb.py,sha256=Bp7AimIuOfp2jIORFvBndk8kuKnEV12Ua1hoQXR5brY,9377
|
|
17
17
|
toolchemy/utils/__init__.py,sha256=6Mp65G6Ce_zY86AxvjyzkMjU_e8cbeij7TTHYqLwO0U,574
|
|
18
18
|
toolchemy/utils/at_exit_collector.py,sha256=YXupFjnujFK86n7dxH1Qol_i7FjNXJyo2q5f4SA3OEU,3682
|
|
@@ -29,8 +29,8 @@ toolchemy/utils/utils.py,sha256=JCRNRBJ4vRWzl-GtbetJs8GM72ImVAbDkPIXrvp3IE0,5167
|
|
|
29
29
|
toolchemy/vision/__init__.py,sha256=p-sQaVd1FUQ1LMGdF51y28Z9IJvMVWaCdvrL0-jKDgc,141
|
|
30
30
|
toolchemy/vision/caption_overlay.py,sha256=fLxHMD7IPSh5XJC5pvdPf1wZvHidlOvnXt_wgW7UJjk,2825
|
|
31
31
|
toolchemy/vision/image.py,sha256=5q7MRK2SEyqWPB62duuzJqGmqBfQP1Tgphu01nP7O8s,2392
|
|
32
|
-
toolchemy-0.2.
|
|
33
|
-
toolchemy-0.2.
|
|
34
|
-
toolchemy-0.2.
|
|
35
|
-
toolchemy-0.2.
|
|
36
|
-
toolchemy-0.2.
|
|
32
|
+
toolchemy-0.2.194.dist-info/METADATA,sha256=nE_yD7yEedvdxxOhPfaWvmV62S1mC4vbx-nH7S1cTQs,980
|
|
33
|
+
toolchemy-0.2.194.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
34
|
+
toolchemy-0.2.194.dist-info/entry_points.txt,sha256=6l1k81pMAx7Ap1FaX8qW8SDwsONnNLOb28QQD9t6gto,66
|
|
35
|
+
toolchemy-0.2.194.dist-info/licenses/LICENSE,sha256=JY5EPk3yvwZqQHk8JrQ-TFARdyfVTK9uUKV6CuKo_Bs,1062
|
|
36
|
+
toolchemy-0.2.194.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|