feat(SNNBot): thermometer speed encoding for precise lead discrimination
3-bit speed encoding couldn't distinguish speed 3 from speed 5 — 9° of lead error baked into the input. Thermometer coding with 8 bits gives 1-bit Hamming distance between adjacent speeds. MAX_K back to 128. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import std/[bitops, math]
|
||||
const
|
||||
INPUT_BITS* = 80
|
||||
WORDS_IN* = 2 # 80 bits → 2 × uint64 (128 bits, only 80 used)
|
||||
MAX_K* = 64
|
||||
MAX_K* = 128
|
||||
MIN_SIM* = 3
|
||||
|
||||
type
|
||||
|
||||
Reference in New Issue
Block a user