code-loader 1.0.186__py3-none-any.whl → 1.0.186.dev0__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.
- code_loader/inner_leap_binder/leapbinder_decorators.py +13 -7
- code_loader-1.0.186.dev0.dist-info/LICENSE +21 -0
- {code_loader-1.0.186.dist-info → code_loader-1.0.186.dev0.dist-info}/METADATA +3 -3
- {code_loader-1.0.186.dist-info → code_loader-1.0.186.dev0.dist-info}/RECORD +6 -5
- {code_loader-1.0.186.dist-info → code_loader-1.0.186.dev0.dist-info}/WHEEL +1 -1
- /code_loader-1.0.186.dist-info/LICENSE → /LICENSE +0 -0
|
@@ -768,14 +768,20 @@ def tensorleap_custom_metric(name: str,
|
|
|
768
768
|
|
|
769
769
|
leap_binder.setup_container.metrics[-1].metric_handler_data.direction = effective_direction
|
|
770
770
|
|
|
771
|
+
# Broadcast a single `compute_insights` value across all dict keys (and fill missing keys
|
|
772
|
+
# for a partial dict), so it applies to every metric in the returned dict.
|
|
773
|
+
if compute_insights is None:
|
|
774
|
+
effective_compute_insights = None
|
|
775
|
+
elif isinstance(compute_insights, dict):
|
|
776
|
+
effective_compute_insights = {key: compute_insights.get(key, True) for key in result_keys}
|
|
777
|
+
else:
|
|
778
|
+
effective_compute_insights = {key: compute_insights for key in result_keys}
|
|
779
|
+
|
|
780
|
+
leap_binder.setup_container.metrics[-1].metric_handler_data.compute_insights = effective_compute_insights
|
|
781
|
+
|
|
771
782
|
if defaulted_direction_keys and not _call_from_tl_platform:
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
elif isinstance(compute_insights, dict):
|
|
775
|
-
effective_compute_insights = compute_insights
|
|
776
|
-
else:
|
|
777
|
-
effective_compute_insights = {k: compute_insights for k in result_keys}
|
|
778
|
-
warning_keys = {key for key in defaulted_direction_keys if effective_compute_insights.get(key, True)}
|
|
783
|
+
warning_keys = {key for key in defaulted_direction_keys
|
|
784
|
+
if (effective_compute_insights or {}).get(key, True)}
|
|
779
785
|
if warning_keys:
|
|
780
786
|
store_warning_by_param(
|
|
781
787
|
param_name=f"direction[{warning_keys}]",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 TensorLeap
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: code-loader
|
|
3
|
-
Version: 1.0.186
|
|
3
|
+
Version: 1.0.186.dev0
|
|
4
4
|
Summary:
|
|
5
|
+
Home-page: https://github.com/tensorleap/code-loader
|
|
5
6
|
License: MIT
|
|
6
7
|
Author: dorhar
|
|
7
8
|
Author-email: doron.harnoy@tensorleap.ai
|
|
@@ -19,7 +20,6 @@ Requires-Dist: numpy (>=2.3.2,<3.0.0) ; python_version >= "3.11" and python_vers
|
|
|
19
20
|
Requires-Dist: psutil (>=5.9.5,<6.0.0)
|
|
20
21
|
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
21
22
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
22
|
-
Project-URL: Homepage, https://github.com/tensorleap/code-loader
|
|
23
23
|
Project-URL: Repository, https://github.com/tensorleap/code-loader
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
1
2
|
code_loader/__init__.py,sha256=outxRQ0M-zMfV0QGVJmAed5qWfRmyD0TV6-goEGAzBw,406
|
|
2
3
|
code_loader/contract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
4
|
code_loader/contract/datasetclasses.py,sha256=RYZcnX7vLMYhyQtCbX2PscVFNAYULxgAA9U4DRRfLqA,10456
|
|
@@ -21,7 +22,7 @@ code_loader/experiment_api/utils.py,sha256=XZHtxge12TS4H4-8PjV3sKuhp8Ud6ojAiIzTZ
|
|
|
21
22
|
code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaSbeTVzq-2ja_SQw4zi7LXwKL9cY,990
|
|
22
23
|
code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
|
|
23
24
|
code_loader/inner_leap_binder/leapbinder.py,sha256=XLYYcV50qjMvoC1S6WW0tLBch_0g5gl1UyHiVSWYbvg,40491
|
|
24
|
-
code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=
|
|
25
|
+
code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=1E-gj0Ydy3xHdiIn1X6Q8b80uuFCY0yYvK_npd7o404,118767
|
|
25
26
|
code_loader/leaploader.py,sha256=K9Q5kiCZ_A2GkS5qOEantAMvWGaz3bmO1X8buXDSpgg,44682
|
|
26
27
|
code_loader/leaploaderbase.py,sha256=l36qDA00GhZEG5NLKpEtAXgWJA-UQQIhNFGxywK7mUA,6530
|
|
27
28
|
code_loader/mixpanel_tracker.py,sha256=rNwRmFifNbdUoqLQvvhhgpKczWpWiEmd8MfyJe27sxw,9131
|
|
@@ -31,7 +32,7 @@ code_loader/plot_functions/visualize.py,sha256=gsBAYYkwMh7jIpJeDMPS8G4CW-pxwx6Lz
|
|
|
31
32
|
code_loader/utils.py,sha256=YecipkdTA-VcE9F0RQcY9cFnY8P3AksPnHM2Db7xUSk,3972
|
|
32
33
|
code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
34
|
code_loader/visualizers/default_visualizers.py,sha256=onRnLE_TXfgLN4o52hQIOOhUcFexGlqJ3xSpQDVLuZM,2604
|
|
34
|
-
code_loader-1.0.186.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
35
|
-
code_loader-1.0.186.dist-info/METADATA,sha256=
|
|
36
|
-
code_loader-1.0.186.dist-info/WHEEL,sha256=
|
|
37
|
-
code_loader-1.0.186.dist-info/RECORD,,
|
|
35
|
+
code_loader-1.0.186.dev0.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
36
|
+
code_loader-1.0.186.dev0.dist-info/METADATA,sha256=b2SFTWfyZacJ5BfWdGa1iDQsydJSfJNIF09H5a-_S10,1095
|
|
37
|
+
code_loader-1.0.186.dev0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
38
|
+
code_loader-1.0.186.dev0.dist-info/RECORD,,
|
|
File without changes
|