diff --git a/src/bqn/nn.bqn b/src/bqn/nn.bqn index a2ae3c6..51187cc 100644 --- a/src/bqn/nn.bqn +++ b/src/bqn/nn.bqn @@ -7,7 +7,7 @@ Minn ← {rt‿ly𝕊dat: A‿DA ← ⟨1÷1+⋆∘-, ⊢×1⊸-⟩ BP ← {fs‿ts‿we𝕊𝕩: do ← <(-⟜ts×DA)⊑⊑hx‿tx ← ¯1(↑⋈↓)𝕩 - (fs<⊸∾tx)×⌜˜¨do∾˜do⊸({d𝕊w‿z: z DA⊸×d M˜⍉w}`)⌾⌽tx⋈¨˜1↓we + (fs<⊸∾tx)×⌜˜¨do∾˜{d𝕊w‿z: z DA⊸×d M˜⍉w}`˜⟜do⌾⌽tx⋈¨˜1↓we } FP ← {z𝕊bi‿we: A bi+we M z}`⟜(⋈¨´) nn ← dat{𝕨𝕊bi‿we: fs‿ts ← 𝕨(↑⋈↓)˜⊑ly diff --git a/src/index.org b/src/index.org index f03b06c..db59bfa 100644 --- a/src/index.org +++ b/src/index.org @@ -36,5 +36,6 @@ 5. [[./si.org][Scheming a mise-en-abîme in BQN]] 6. [[./aoc24.org][Coding in Advent]] 7. [[./nn.org][The miniaturist's neural network]] +8. [[./nm.org][A numerical methods bonsai display]] #+HTML: diff --git a/src/nn.org b/src/nn.org index c203b71..6182e44 100644 --- a/src/nn.org +++ b/src/nn.org @@ -64,7 +64,7 @@ variational freedom with the weights. A‿DA ← ⟨1÷1+⋆∘-, ⊢×1⊸-⟩ BP ← {fs‿ts‿we𝕊𝕩: do ← <(-⟜ts×DA)⊑⊑hx‿tx ← ¯1(↑⋈↓)𝕩 - (fs<⊸∾tx)×⌜˜¨do∾˜do⊸({d𝕊w‿z: z DA⊸×d M˜⍉w}`)⌾⌽tx⋈¨˜1↓we + (fs<⊸∾tx)×⌜˜¨do∾˜{d𝕊w‿z: z DA⊸×d M˜⍉w}`˜⟜do⌾⌽tx⋈¨˜1↓we } FP ← {z𝕊bi‿we: A bi+we M z}`⟜(⋈¨´) nn ← dat{𝕨𝕊bi‿we: fs‿ts ← 𝕨(↑⋈↓)˜⊑ly @@ -146,7 +146,7 @@ are system dependent and susceptible to change. One has to experiment with them #+end_src #+RESULTS: -: 0.14839151901691489 +: 0.14040810449126903 Let’s see if we’ve gotten the numbers right after learning. But then again, what is a number that a man may know it[fn:6]...