kostyl-toolkit 0.1.27__py3-none-any.whl → 0.1.28__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.
@@ -13,21 +13,21 @@ class _LinearScheduleBase(BaseScheduler):
13
13
  self,
14
14
  param_name: str,
15
15
  num_iters: int,
16
- base_value: float,
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.base_value = base_value
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.base_value
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.base_value, self.final_value, num=self.num_iters, dtype=np.float64
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
- base_value: float,
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
- base_value: Value used on the first iteration.
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
- base_value=base_value,
102
+ start_value=start_value,
103
103
  final_value=final_value,
104
104
  )
105
105
  self.param_group_field = param_group_field
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kostyl-toolkit
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: Kickass Orchestration System for Training, Yielding & Logging
5
5
  Requires-Dist: case-converter>=1.2.0
6
6
  Requires-Dist: loguru>=0.7.3
@@ -26,11 +26,11 @@ kostyl/ml/schedulers/__init__.py,sha256=bxXbsU_WYnVbhvNNnuI7cOAh2Axz7D25TaleBTZh
26
26
  kostyl/ml/schedulers/base.py,sha256=9M2iOoOVSRojR_liPX1qo3Nn4iMXSM5ZJuAFWZTulUk,1327
27
27
  kostyl/ml/schedulers/composite.py,sha256=ee4xlMDMMtjKPkbTF2ue9GTr9DuGCGjZWf11mHbi6aE,2387
28
28
  kostyl/ml/schedulers/cosine.py,sha256=t74_ByT22L5NQKpnBVU9UGzBVx1ZM2GTylb9ct3_PVg,7627
29
- kostyl/ml/schedulers/linear.py,sha256=62mYEfd_2cQjOWrd0Vl5_sFeEokBKYmx496szhY04aU,5159
29
+ kostyl/ml/schedulers/linear.py,sha256=7HPkVWcPa0lbaZywutXSDdVLLSihAyWk5XIE2Dzj_5Q,5168
30
30
  kostyl/utils/__init__.py,sha256=hkpmB6c5pr4Ti5BshOROebb7cvjDZfNCw83qZ_FFKMM,240
31
31
  kostyl/utils/dict_manipulations.py,sha256=e3vBicID74nYP8lHkVTQc4-IQwoJimrbFELy5uSF6Gk,1073
32
32
  kostyl/utils/fs.py,sha256=gAQNIU4R_2DhwjgzOS8BOMe0gZymtY1eZwmdgOdDgqo,510
33
33
  kostyl/utils/logging.py,sha256=Vye0u4-yeOSUc-f03gpQbxSktTbFiilTWLEVr00ZHvc,5796
34
- kostyl_toolkit-0.1.27.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
35
- kostyl_toolkit-0.1.27.dist-info/METADATA,sha256=kg7Y2CJqhAI-3--rIKsPlarm1Ukk6jQLJpW2ZBvysI8,4269
36
- kostyl_toolkit-0.1.27.dist-info/RECORD,,
34
+ kostyl_toolkit-0.1.28.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
35
+ kostyl_toolkit-0.1.28.dist-info/METADATA,sha256=_gd25R8fJUN7BDYqEDJtXQgmVHTjkSN0B1TWaxYcnhY,4269
36
+ kostyl_toolkit-0.1.28.dist-info/RECORD,,