code-loader 1.0.186.dev2__py3-none-any.whl → 1.0.186.dev3__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/leaploader.py +10 -0
- code_loader/leaploaderbase.py +4 -0
- {code_loader-1.0.186.dev2.dist-info → code_loader-1.0.186.dev3.dist-info}/METADATA +1 -1
- {code_loader-1.0.186.dev2.dist-info → code_loader-1.0.186.dev3.dist-info}/RECORD +6 -6
- {code_loader-1.0.186.dev2.dist-info → code_loader-1.0.186.dev3.dist-info}/LICENSE +0 -0
- {code_loader-1.0.186.dev2.dist-info → code_loader-1.0.186.dev3.dist-info}/WHEEL +0 -0
code_loader/leaploader.py
CHANGED
|
@@ -503,6 +503,16 @@ class LeapLoader(LeapLoaderBase):
|
|
|
503
503
|
returned_sample_ids = original_sample_ids
|
|
504
504
|
return {"encoded": encoded, "sample_ids": returned_sample_ids}
|
|
505
505
|
|
|
506
|
+
def evict_synthetic_samples(self, sample_ids):
|
|
507
|
+
# type: (List[str]) -> None
|
|
508
|
+
# Drop already-consumed synthetic samples from the in-memory lookup so
|
|
509
|
+
# preprocess responses don't accumulate across many run_simulation calls
|
|
510
|
+
# (e.g. a synthetic calibration loop). Safe to call for ids that were
|
|
511
|
+
# persisted as recipes — a later get_sample replays the recipe and
|
|
512
|
+
# repopulates _synthetic_lookup on demand.
|
|
513
|
+
for sample_id in sample_ids:
|
|
514
|
+
self._synthetic_lookup.pop(sample_id, None)
|
|
515
|
+
|
|
506
516
|
def _extend_additional_preprocess(self, new_sample_ids: List[str]) -> None:
|
|
507
517
|
if self._preprocess_result_cached is None:
|
|
508
518
|
self._preprocess_result()
|
code_loader/leaploaderbase.py
CHANGED
|
@@ -159,6 +159,10 @@ class LeapLoaderBase:
|
|
|
159
159
|
# type: (str, Optional[Dict[str, Any]], int, int, Optional[List[str]], bool, bool) -> Dict[str, Any]
|
|
160
160
|
pass
|
|
161
161
|
|
|
162
|
+
def evict_synthetic_samples(self, sample_ids):
|
|
163
|
+
# type: (List[str]) -> None
|
|
164
|
+
pass
|
|
165
|
+
|
|
162
166
|
def is_custom_latent_space(self) -> bool:
|
|
163
167
|
if not self.code_entry_name or not self.code_path:
|
|
164
168
|
return False
|
|
@@ -23,8 +23,8 @@ code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaS
|
|
|
23
23
|
code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
|
|
24
24
|
code_loader/inner_leap_binder/leapbinder.py,sha256=XLYYcV50qjMvoC1S6WW0tLBch_0g5gl1UyHiVSWYbvg,40491
|
|
25
25
|
code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=8a7aJ1o4f60VnlErNjX_4RbUXpLWt91pgGcIDLBvOWc,115314
|
|
26
|
-
code_loader/leaploader.py,sha256=
|
|
27
|
-
code_loader/leaploaderbase.py,sha256=
|
|
26
|
+
code_loader/leaploader.py,sha256=SbJBfw3lPf0t1tZWotrndganhJ1tCi9P2S2P5Go4Z0w,45593
|
|
27
|
+
code_loader/leaploaderbase.py,sha256=6EzecU0a3qeDeLonp0NOWsN8vd_F9GemwOVAqPOBAT4,6711
|
|
28
28
|
code_loader/mixpanel_tracker.py,sha256=rNwRmFifNbdUoqLQvvhhgpKczWpWiEmd8MfyJe27sxw,9131
|
|
29
29
|
code_loader/plot_functions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
code_loader/plot_functions/plot_functions.py,sha256=6Q7VWGxetL2W0EK2QeCdObVATvBuHs3YBA09H4uoIk0,14996
|
|
@@ -32,7 +32,7 @@ code_loader/plot_functions/visualize.py,sha256=gsBAYYkwMh7jIpJeDMPS8G4CW-pxwx6Lz
|
|
|
32
32
|
code_loader/utils.py,sha256=YecipkdTA-VcE9F0RQcY9cFnY8P3AksPnHM2Db7xUSk,3972
|
|
33
33
|
code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
code_loader/visualizers/default_visualizers.py,sha256=onRnLE_TXfgLN4o52hQIOOhUcFexGlqJ3xSpQDVLuZM,2604
|
|
35
|
-
code_loader-1.0.186.
|
|
36
|
-
code_loader-1.0.186.
|
|
37
|
-
code_loader-1.0.186.
|
|
38
|
-
code_loader-1.0.186.
|
|
35
|
+
code_loader-1.0.186.dev3.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
36
|
+
code_loader-1.0.186.dev3.dist-info/METADATA,sha256=tpmySbdjgHZdN4P00wbehn955-pvfWcQVbjY4ZWaMJw,1095
|
|
37
|
+
code_loader-1.0.186.dev3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
38
|
+
code_loader-1.0.186.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|