kostyl-toolkit 0.1.27__tar.gz → 0.1.28__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.
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/PKG-INFO +1 -1
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/schedulers/linear.py +7 -7
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/pyproject.toml +1 -1
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/README.md +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/clearml/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/clearml/dataset_utils.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/clearml/logging_utils.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/clearml/pulling_utils.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/configs/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/configs/base_model.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/configs/hyperparams.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/configs/training_settings.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/dist_utils.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/callbacks/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/callbacks/checkpoint.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/callbacks/early_stopping.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/callbacks/registry_uploader.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/extenstions/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/extenstions/custom_module.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/extenstions/pretrained_model.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/loggers/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/loggers/tb_logger.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/steps_estimation.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/metrics_formatting.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/params_groups.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/schedulers/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/schedulers/base.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/schedulers/composite.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/schedulers/cosine.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/utils/__init__.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/utils/dict_manipulations.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/utils/fs.py +0 -0
- {kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/utils/logging.py +0 -0
|
@@ -13,21 +13,21 @@ class _LinearScheduleBase(BaseScheduler):
|
|
|
13
13
|
self,
|
|
14
14
|
param_name: str,
|
|
15
15
|
num_iters: int,
|
|
16
|
-
|
|
16
|
+
start_value: float,
|
|
17
17
|
final_value: float,
|
|
18
18
|
) -> None:
|
|
19
19
|
self.param_name = param_name
|
|
20
20
|
self.num_iters = num_iters
|
|
21
|
-
self.
|
|
21
|
+
self.start_value = start_value
|
|
22
22
|
self.final_value = final_value
|
|
23
23
|
|
|
24
24
|
self.scheduler_values: npt.NDArray[np.float64] = np.array([], dtype=np.float64)
|
|
25
|
-
self.current_value_ = self.
|
|
25
|
+
self.current_value_ = self.start_value
|
|
26
26
|
return
|
|
27
27
|
|
|
28
28
|
def _create_scheduler(self) -> None:
|
|
29
29
|
self.scheduler_values = np.linspace(
|
|
30
|
-
self.
|
|
30
|
+
self.start_value, self.final_value, num=self.num_iters, dtype=np.float64
|
|
31
31
|
)
|
|
32
32
|
if len(self.scheduler_values) != self.num_iters:
|
|
33
33
|
raise ValueError(
|
|
@@ -69,7 +69,7 @@ class LinearScheduler(_LinearScheduleBase):
|
|
|
69
69
|
optimizer: torch.optim.Optimizer,
|
|
70
70
|
param_group_field: str,
|
|
71
71
|
num_iters: int,
|
|
72
|
-
|
|
72
|
+
start_value: float,
|
|
73
73
|
final_value: float,
|
|
74
74
|
multiplier_field: str | None = None,
|
|
75
75
|
skip_if_zero: bool = False,
|
|
@@ -83,7 +83,7 @@ class LinearScheduler(_LinearScheduleBase):
|
|
|
83
83
|
optimizer: Optimizer whose param groups are updated in-place.
|
|
84
84
|
param_group_field: Name of the field that receives the scheduled value.
|
|
85
85
|
num_iters: Number of scheduler iterations before clamping at ``final_value``.
|
|
86
|
-
|
|
86
|
+
start_value: Value used on the first iteration.
|
|
87
87
|
final_value: Value used once ``num_iters`` iterations are consumed.
|
|
88
88
|
multiplier_field: Optional per-group multiplier applied to the scheduled value.
|
|
89
89
|
skip_if_zero: Leave groups untouched when their target field equals zero.
|
|
@@ -99,7 +99,7 @@ class LinearScheduler(_LinearScheduleBase):
|
|
|
99
99
|
super().__init__(
|
|
100
100
|
param_name=param_group_field,
|
|
101
101
|
num_iters=num_iters,
|
|
102
|
-
|
|
102
|
+
start_value=start_value,
|
|
103
103
|
final_value=final_value,
|
|
104
104
|
)
|
|
105
105
|
self.param_group_field = param_group_field
|
|
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
|
{kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/callbacks/early_stopping.py
RENAMED
|
File without changes
|
{kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/callbacks/registry_uploader.py
RENAMED
|
File without changes
|
|
File without changes
|
{kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/extenstions/custom_module.py
RENAMED
|
File without changes
|
{kostyl_toolkit-0.1.27 → kostyl_toolkit-0.1.28}/kostyl/ml/lightning/extenstions/pretrained_model.py
RENAMED
|
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
|