gradboard 2.1.0__tar.gz → 2.2.1__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-2.1.0 → gradboard-2.2.1}/PKG-INFO +1 -1
- {gradboard-2.1.0 → gradboard-2.2.1}/gradboard/scheduler.py +9 -13
- {gradboard-2.1.0 → gradboard-2.2.1}/pyproject.toml +1 -1
- {gradboard-2.1.0 → gradboard-2.2.1}/LICENSE +0 -0
- {gradboard-2.1.0 → gradboard-2.2.1}/README.md +0 -0
- {gradboard-2.1.0 → gradboard-2.2.1}/gradboard/__init__.py +0 -0
- {gradboard-2.1.0 → gradboard-2.2.1}/gradboard/cycles.py +0 -0
- {gradboard-2.1.0 → gradboard-2.2.1}/gradboard/optimiser.py +0 -0
|
@@ -159,20 +159,16 @@ class PASS:
|
|
|
159
159
|
"""
|
|
160
160
|
range_test_results = self._smoothed_range_test(self.range_test_results)
|
|
161
161
|
minimum = min(range_test_results, key=lambda x: x[1])
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if r[0] > minimum[0]:
|
|
165
|
-
break
|
|
166
|
-
elif r[1] > max_left_of_min[1]:
|
|
167
|
-
max_left_of_min = r
|
|
168
|
-
else:
|
|
169
|
-
continue
|
|
162
|
+
points_left_of_min = [r for r in range_test_results if r[0] < minimum[0]]
|
|
163
|
+
max_left_of_min = max(points_left_of_min, key=lambda x: x[1])
|
|
170
164
|
difference = max_left_of_min[1] - minimum[1]
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
self.
|
|
165
|
+
self.max_lr = None
|
|
166
|
+
self.cool_point = None
|
|
167
|
+
for p in sorted(points_left_of_min, key=lambda x: x[0]):
|
|
168
|
+
if (self.cool_point is None) and (p[1] < minimum[1] + 0.66 * difference):
|
|
169
|
+
self.cool_point = p[0]
|
|
170
|
+
elif (self.max_lr is None) and (p[1] < minimum[1] + 0.33 * difference):
|
|
171
|
+
self.max_lr = p[0]
|
|
176
172
|
else:
|
|
177
173
|
continue
|
|
178
174
|
self.cool_point = min(self.cool_point, self.max_lr / 4)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|