code-loader 1.0.47__tar.gz → 1.0.48__tar.gz
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-1.0.47 → code_loader-1.0.48}/PKG-INFO +1 -1
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/api.py +1 -1
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/epoch.py +4 -2
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/experiment.py +3 -2
- {code_loader-1.0.47 → code_loader-1.0.48}/pyproject.toml +1 -1
- {code_loader-1.0.47 → code_loader-1.0.48}/LICENSE +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/README.md +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/__init__.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/contract/__init__.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/contract/datasetclasses.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/contract/enums.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/contract/exceptions.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/contract/responsedataclasses.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/contract/visualizer_classes.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/__init__.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/cli_config_utils.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/client.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/experiment_context.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/types.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/utils.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/workingspace_config_utils.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/inner_leap_binder/__init__.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/inner_leap_binder/leapbinder.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/leaploader.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/utils.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/visualizers/__init__.py +0 -0
- {code_loader-1.0.47 → code_loader-1.0.48}/code_loader/visualizers/default_visualizers.py +0 -0
@@ -91,13 +91,14 @@ class Epoch:
|
|
91
91
|
tags=tags
|
92
92
|
))
|
93
93
|
|
94
|
-
def log(self, modelFilePath: Optional[str] = None, tags: Optional[List[str]] = None) -> None:
|
94
|
+
def log(self, modelFilePath: Optional[str] = None, tags: Optional[List[str]] = None, override: bool = False) -> None:
|
95
95
|
"""
|
96
96
|
Logs the epoch with optional model file and tags.
|
97
97
|
|
98
98
|
Args:
|
99
99
|
modelFilePath (Optional[str]): The path to the model file. Defaults to None.
|
100
100
|
tags (Optional[List[str]]): A list of tags to associate with the epoch model. Will always include the default tag. Unless the default tag is set to '', all previous epoch model with the same tag will be removed
|
101
|
+
override (bool): Whether to override the existing epoch model. Defaults to False.
|
101
102
|
"""
|
102
103
|
if tags is None:
|
103
104
|
tags = []
|
@@ -119,7 +120,8 @@ class Epoch:
|
|
119
120
|
experimentId=self.ctx.experiment_id,
|
120
121
|
projectId=self.ctx.project_id,
|
121
122
|
epoch=self.epoch,
|
122
|
-
metrics=api_metrics
|
123
|
+
metrics=api_metrics,
|
124
|
+
override=override
|
123
125
|
))
|
124
126
|
if modelFilePath is not None and len(tags) > 0:
|
125
127
|
self._tag_model(tags)
|
@@ -41,7 +41,7 @@ class Experiment:
|
|
41
41
|
"""
|
42
42
|
return Epoch(self.ctx, epoch, self.default_epoch_tag)
|
43
43
|
|
44
|
-
def log_epoch(self, epoch: int, metrics: Optional[Metrics] = None, model_path: Optional[str] = None, tags: Optional[List[str]] = None) -> None:
|
44
|
+
def log_epoch(self, epoch: int, metrics: Optional[Metrics] = None, model_path: Optional[str] = None, tags: Optional[List[str]] = None, override: bool = False) -> None:
|
45
45
|
"""
|
46
46
|
Logs an epoch with optional metrics, model path, and tags.
|
47
47
|
|
@@ -50,11 +50,12 @@ class Experiment:
|
|
50
50
|
metrics (Optional[Metrics]): The metrics to log for the epoch. Defaults to None.
|
51
51
|
model_path (Optional[str]): The path to the model file. Defaults to None.
|
52
52
|
tags (Optional[List[str]]): A list of tags to associate with the epoch model. Will always include the default tag. Unless the default tag is set to '', all previous epoch model with the same tag will be removed.
|
53
|
+
override (bool): Whether to override the epoch if it already exists. Defaults to False.
|
53
54
|
"""
|
54
55
|
epoch_o = self.init_epoch(epoch)
|
55
56
|
if metrics is not None:
|
56
57
|
epoch_o.set_metrics(metrics)
|
57
|
-
epoch_o.log(model_path, tags)
|
58
|
+
epoch_o.log(model_path, tags, override)
|
58
59
|
|
59
60
|
def set_properties(self, properties: Dict[str, Any]) -> None:
|
60
61
|
"""
|
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
|
{code_loader-1.0.47 → code_loader-1.0.48}/code_loader/experiment_api/workingspace_config_utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|