gradboard 0.1.15__tar.gz → 0.1.17__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.15 → gradboard-0.1.17}/PKG-INFO +1 -1
- {gradboard-0.1.15 → gradboard-0.1.17}/gradboard/scheduler.py +16 -13
- {gradboard-0.1.15 → gradboard-0.1.17}/pyproject.toml +1 -1
- {gradboard-0.1.15 → gradboard-0.1.17}/LICENSE +0 -0
- {gradboard-0.1.15 → gradboard-0.1.17}/README.md +0 -0
- {gradboard-0.1.15 → gradboard-0.1.17}/gradboard/__init__.py +0 -0
- {gradboard-0.1.15 → gradboard-0.1.17}/gradboard/cycles.py +0 -0
- {gradboard-0.1.15 → gradboard-0.1.17}/gradboard/optimiser.py +0 -0
|
@@ -160,19 +160,22 @@ 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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
163
|
+
min_loss = minimum[1]
|
|
164
|
+
points_left_of_min = [p for p in range_test_results if p[0] < minimum[0]]
|
|
165
|
+
highest_point_left_of_min = max(points_left_of_min, key=lambda x: x[1])
|
|
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
|
|
169
|
+
for r in range_test_results:
|
|
170
|
+
if r[1] < cool_point_loss:
|
|
171
|
+
self.cool_point = r[0]
|
|
172
|
+
break
|
|
173
|
+
for r in range_test_results:
|
|
174
|
+
if r[1] >= max_lr_loss:
|
|
175
|
+
self.max_lr = r[0]
|
|
176
|
+
break
|
|
177
|
+
print("High LR", self.max_lr)
|
|
178
|
+
print("Cool point", self.cool_point)
|
|
176
179
|
|
|
177
180
|
def update_learning_rates(self):
|
|
178
181
|
if self.finished:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|