Commit 3fe5c01
committed
Refactor SOM and metrics modules:
- Removed unused imports in `som.py` for improved clarity and organization.
- Commented out unnecessary device transfer in the `SOM` class to prevent potential issues.
- Added back essential imports in `metrics.py` for axial distance calculations.
- Enhanced inline comments for better understanding of logic in distance normalization.1 parent 50d1752 commit 3fe5c01
2 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
| |||
338 | 333 | | |
339 | 334 | | |
340 | 335 | | |
341 | | - | |
| 336 | + | |
342 | 337 | | |
343 | 338 | | |
344 | 339 | | |
| |||
682 | 677 | | |
683 | 678 | | |
684 | 679 | | |
685 | | - | |
| 680 | + | |
686 | 681 | | |
687 | 682 | | |
688 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
0 commit comments