gradboard 0.1.16__tar.gz → 0.1.18__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.
Potentially problematic release.
This version of gradboard might be problematic. Click here for more details.
- {gradboard-0.1.16 → gradboard-0.1.18}/PKG-INFO +1 -1
- {gradboard-0.1.16 → gradboard-0.1.18}/gradboard/scheduler.py +6 -5
- {gradboard-0.1.16 → gradboard-0.1.18}/pyproject.toml +1 -1
- {gradboard-0.1.16 → gradboard-0.1.18}/LICENSE +0 -0
- {gradboard-0.1.16 → gradboard-0.1.18}/README.md +0 -0
- {gradboard-0.1.16 → gradboard-0.1.18}/gradboard/__init__.py +0 -0
- {gradboard-0.1.16 → gradboard-0.1.18}/gradboard/cycles.py +0 -0
- {gradboard-0.1.16 → gradboard-0.1.18}/gradboard/optimiser.py +0 -0
|
@@ -160,18 +160,19 @@ class PASS:
|
|
|
160
160
|
"""
|
|
161
161
|
range_test_results = self._smoothed_range_test(self.range_test_results)
|
|
162
162
|
minimum = min(range_test_results, key=lambda x: x[1])
|
|
163
|
+
min_loss = minimum[1]
|
|
163
164
|
points_left_of_min = [p for p in range_test_results if p[0] < minimum[0]]
|
|
164
165
|
highest_point_left_of_min = max(points_left_of_min, key=lambda x: x[1])
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
loss_difference = highest_point_left_of_min[1] - minimum[1]
|
|
167
|
+
cool_point_loss = min_loss + 0.75 * loss_difference
|
|
168
|
+
max_lr_loss = min_loss + 0.25 * loss_difference
|
|
167
169
|
for r in range_test_results:
|
|
168
|
-
if r[1] <
|
|
170
|
+
if r[1] < cool_point_loss:
|
|
169
171
|
self.cool_point = r[0]
|
|
170
172
|
break
|
|
171
173
|
for r in range_test_results:
|
|
172
|
-
if r[1]
|
|
174
|
+
if r[1] <= max_lr_loss:
|
|
173
175
|
self.max_lr = r[0]
|
|
174
|
-
else:
|
|
175
176
|
break
|
|
176
177
|
print("High LR", self.max_lr)
|
|
177
178
|
print("Cool point", self.cool_point)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|