Skip to content

Commit

Permalink
feat: cleaner code and new post begin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Panadestein committed Jan 10, 2025
1 parent 948c8d4 commit ee7c82c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bqn/nn.bqn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Minn ← {rt‿ly𝕊dat:
ADA ← ⟨1÷1+⋆-, ⊢×1-
BP ← {fstswe𝕊𝕩:
do<(-ts×DA)⊑⊑hxtx¯1(↑⋈↓)𝕩
(fs<tx)×⌜˜¨do˜do({d𝕊wz: z DA×d M˜w}`)tx¨˜1we
(fs<tx)×⌜˜¨do˜{d𝕊wz: z DA×d M˜w}`˜dotx¨˜1we
}
FP ← {z𝕊biwe: A bi+we M z}`(¨´)
nndat{𝕨𝕊biwe: fsts𝕨(↑⋈↓)˜ly
Expand Down
1 change: 1 addition & 0 deletions src/index.org
Original file line number Diff line number Diff line change
Expand Up @@ -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: </div>
4 changes: 2 additions & 2 deletions src/nn.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]...

Expand Down

0 comments on commit ee7c82c

Please sign in to comment.