gradboard 3.0.1__tar.gz → 4.0.0__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,17 +1,18 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gradboard
3
- Version: 3.0.1
3
+ Version: 4.0.0
4
4
  Summary: Easily snowboard down gnarly loss gradients
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
7
- Requires-Python: >=3.11
7
+ Requires-Python: >=3.8
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.8
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
10
13
  Classifier: Programming Language :: Python :: 3.11
11
14
  Classifier: Programming Language :: Python :: 3.12
12
15
  Classifier: Programming Language :: Python :: 3.13
13
- Requires-Dist: numpy (>=2.0.2,<3.0.0)
14
- Requires-Dist: scipy (>=1.15.3,<2.0.0)
15
16
  Description-Content-Type: text/markdown
16
17
 
17
18
  # gradboard
@@ -6,8 +6,6 @@ from typing import Optional
6
6
  import copy
7
7
  import math
8
8
 
9
- from scipy.ndimage import gaussian_filter1d
10
-
11
9
  from torch.amp import GradScaler
12
10
 
13
11
  from .cycles import Cycle
@@ -137,8 +135,7 @@ class PASS:
137
135
  learning_rates = [t[0] for t in range_test_results]
138
136
  losses = [t[1] for t in self.range_test_results]
139
137
  losses = losses[:-1] + [10 * max(losses)]
140
- smoothed_losses = gaussian_filter1d(losses, 3)
141
- return list(zip(learning_rates, smoothed_losses, strict=True))
138
+ return list(zip(learning_rates, losses, strict=True))
142
139
 
143
140
  def _plot_range_test(self, range_test_results):
144
141
  """
@@ -1,29 +1,25 @@
1
1
  [project]
2
2
  name = "gradboard"
3
- version = "3.0.1"
3
+ version = "4.0.0"
4
4
  description = "Easily snowboard down gnarly loss gradients"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
7
7
  ]
8
8
  license = {text = "MIT"}
9
9
  readme = "README.md"
10
- requires-python = ">=3.11"
11
- dependencies = [
12
- "numpy (>=2.0.2,<3.0.0)",
13
- "scipy (>=1.15.3,<2.0.0)"
14
- ]
10
+ requires-python = ">=3.8"
11
+ dependencies = []
15
12
 
16
13
  [tool.poetry]
17
14
 
18
15
  [tool.poetry.group.dev.dependencies]
19
- black = "^25.1.0"
20
- flake8 = "7.3.0"
21
- pytest = "^8.4.1"
22
- pytest-cov = "^6.2.1"
16
+ black = "^24.4.2"
17
+ flake8 = "^5.0.4"
18
+ pytest = "^8.3.5"
23
19
 
24
20
  [tool.black]
25
21
  line-length = 88
26
- target-version = ['py312']
22
+ target-version = ['py38']
27
23
  include = '\.pyi?$'
28
24
  extend-exclude = '''
29
25
  # A regex preceded with ^/ will apply only to files and directories
File without changes
File without changes
File without changes