hydraflow 0.2.10__tar.gz → 0.2.11__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {hydraflow-0.2.10 → hydraflow-0.2.11}/PKG-INFO +1 -1
- {hydraflow-0.2.10 → hydraflow-0.2.11}/pyproject.toml +1 -1
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/progress.py +12 -6
- {hydraflow-0.2.10 → hydraflow-0.2.11}/.devcontainer/devcontainer.json +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/.devcontainer/postCreate.sh +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/.devcontainer/starship.toml +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/.gitattributes +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/.gitignore +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/LICENSE +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/README.md +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/__init__.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/asyncio.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/config.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/context.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/info.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/mlflow.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/src/hydraflow/run_collection.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/scripts/__init__.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/scripts/app.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/scripts/progress.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/scripts/watch.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_app.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_asyncio.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_config.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_context.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_info.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_log_run.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_mlflow.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_progress.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_run_collection.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_version.py +0 -0
- {hydraflow-0.2.10 → hydraflow-0.2.11}/tests/test_watch.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: hydraflow
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.11
|
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
|
@@ -161,21 +161,27 @@ def multi_tasks_progress(
|
|
161
161
|
|
162
162
|
with Progress(*columns, transient=transient or False, **kwargs) as progress:
|
163
163
|
task_main = progress.add_task(main_description, total=None)
|
164
|
+
|
165
|
+
task_ids = [
|
166
|
+
progress.add_task(description.format(i), start=False, total=None)
|
167
|
+
for i in range(len(iterables))
|
168
|
+
]
|
169
|
+
|
164
170
|
total = {}
|
165
171
|
completed = {}
|
166
172
|
|
167
|
-
def func(i: int
|
168
|
-
task_id = progress.add_task(description.format(i), total=None)
|
173
|
+
def func(i: int) -> None:
|
169
174
|
completed[i] = 0
|
170
175
|
total[i] = None
|
176
|
+
progress.start_task(task_ids[i])
|
171
177
|
|
172
|
-
for index in
|
178
|
+
for index in iterables[i]:
|
173
179
|
if isinstance(index, tuple):
|
174
180
|
completed[i], total[i] = index[0] + 1, index[1]
|
175
181
|
else:
|
176
182
|
completed[i] = index + 1
|
177
183
|
|
178
|
-
progress.update(
|
184
|
+
progress.update(task_ids[i], total=total[i], completed=completed[i])
|
179
185
|
|
180
186
|
if all(t is not None for t in total.values()):
|
181
187
|
t = sum(total.values())
|
@@ -185,7 +191,7 @@ def multi_tasks_progress(
|
|
185
191
|
progress.update(task_main, total=t, completed=c)
|
186
192
|
|
187
193
|
if transient is not False:
|
188
|
-
progress.remove_task(
|
194
|
+
progress.remove_task(task_ids[i])
|
189
195
|
|
190
|
-
it = (joblib.delayed(func)(i
|
196
|
+
it = (joblib.delayed(func)(i) for i in range(len(iterables)))
|
191
197
|
joblib.Parallel(n_jobs, prefer="threads")(it)
|
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
|