gradboard 0.1.19__py3-none-any.whl → 0.1.21__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.

Potentially problematic release.


This version of gradboard might be problematic. Click here for more details.

gradboard/cycles.py CHANGED
@@ -47,7 +47,7 @@ def quarter_circle(step: int, total_steps: int) -> float:
47
47
  # x^2 + y^2 = r^2 = 1
48
48
  # Therefore y^2 = 1 - x^2
49
49
  # Therefore y^2 = (1 + x)(1 - x)
50
- y_squared = (1 - x) * (1 + x)
50
+ y_squared = max(1 - x, 0) * (1 + x)
51
51
  try:
52
52
  return math.sqrt(y_squared)
53
53
  except ValueError:
gradboard/scheduler.py CHANGED
@@ -168,11 +168,11 @@ class PASS:
168
168
  max_lr_loss = min_loss + 0.25 * loss_difference
169
169
  for r in range_test_results:
170
170
  if r[1] < cool_point_loss:
171
- self.cool_point = r[0]
171
+ self.cool_point = r[0] * sc.golden
172
172
  break
173
173
  for r in range_test_results:
174
174
  if r[1] <= max_lr_loss:
175
- self.max_lr = r[0]
175
+ self.max_lr = r[0] / sc.golden
176
176
  break
177
177
  print("High LR", self.max_lr)
178
178
  print("Cool point", self.cool_point)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gradboard
3
- Version: 0.1.19
3
+ Version: 0.1.21
4
4
  Summary: Easily snowboard down gnarly loss gradients
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -0,0 +1,8 @@
1
+ gradboard/__init__.py,sha256=57AkHusYwLCsusiVnajH5pMFKioRCj-3IjF9qpdOzE0,69
2
+ gradboard/cycles.py,sha256=iGEW3Rlp-JNyQZLfpaDXxUCAcEV01ANjLF-Fnhug-qA,10120
3
+ gradboard/optimiser.py,sha256=Iw1piQkQkWdNUW8d9f3iPrvP9qEGVxEKmerK7ATDgOI,6189
4
+ gradboard/scheduler.py,sha256=m3P05Qr_UVNynbZfmJ6avXLJnjr_UcF089U9NLw2kmE,6787
5
+ gradboard-0.1.21.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
6
+ gradboard-0.1.21.dist-info/METADATA,sha256=bujIVgRqlrfZ48fS0QfKL5ppWf2XET2SYNCl8a9QyAI,2174
7
+ gradboard-0.1.21.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8
+ gradboard-0.1.21.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- gradboard/__init__.py,sha256=57AkHusYwLCsusiVnajH5pMFKioRCj-3IjF9qpdOzE0,69
2
- gradboard/cycles.py,sha256=E2WDo8_5arw1-gdhJ5oUCBlBKco7z6D1j0QmEUI8laE,10114
3
- gradboard/optimiser.py,sha256=Iw1piQkQkWdNUW8d9f3iPrvP9qEGVxEKmerK7ATDgOI,6189
4
- gradboard/scheduler.py,sha256=V5JImjirtmsMEhbrzu9gbqKlxRj0aaZTQw3mMN1Fk4c,6763
5
- gradboard-0.1.19.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
6
- gradboard-0.1.19.dist-info/METADATA,sha256=-WboEtrdVXMMdVtgMsE1g8zOZkSpy8r1yCt6l3WIrQs,2174
7
- gradboard-0.1.19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8
- gradboard-0.1.19.dist-info/RECORD,,