gradboard 0.1.17__tar.gz → 0.1.19__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gradboard
3
- Version: 0.1.17
3
+ Version: 0.1.19
4
4
  Summary: Easily snowboard down gnarly loss gradients
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -48,7 +48,12 @@ def quarter_circle(step: int, total_steps: int) -> float:
48
48
  # Therefore y^2 = 1 - x^2
49
49
  # Therefore y^2 = (1 + x)(1 - x)
50
50
  y_squared = (1 - x) * (1 + x)
51
- return math.sqrt(y_squared)
51
+ try:
52
+ return math.sqrt(y_squared)
53
+ except ValueError:
54
+ print("total_steps: ", total_steps)
55
+ print("step: ", total_steps)
56
+ raise ValueError("Still broken!") from None
52
57
 
53
58
 
54
59
  def half_cosine(step: int, total_steps: int) -> float:
@@ -171,7 +171,7 @@ class PASS:
171
171
  self.cool_point = r[0]
172
172
  break
173
173
  for r in range_test_results:
174
- if r[1] >= max_lr_loss:
174
+ if r[1] <= max_lr_loss:
175
175
  self.max_lr = r[0]
176
176
  break
177
177
  print("High LR", self.max_lr)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gradboard"
3
- version = "0.1.17"
3
+ version = "0.1.19"
4
4
  description = "Easily snowboard down gnarly loss gradients"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes