Skip to content

Commit

Permalink
feat: optimal state nn.
Browse files Browse the repository at this point in the history
  • Loading branch information
Panadestein committed Jan 10, 2025
1 parent be8ad59 commit 37d1794
Show file tree
Hide file tree
Showing 4 changed files with 5,841 additions and 5,939 deletions.
4 changes: 2 additions & 2 deletions src/bqn/nn.bqn
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Minn ← {rt‿ly𝕊dat:
neqntrntee60010050100
I ← {((2.8+𝕩×⊢))4}
L ← {𝕨(⊣×1-×⊢)((neq-𝕩)+↕𝕩)•rand.Range 0}
te{𝕩˘⊏⍉2𝕩L nte}¨I 0.01
te{𝕩˘⊏⍉2𝕩L nte}¨I (0.004-˜10⋆÷˜)2
tr•rand.Deal(e-1)˜{𝕩˘2𝕩L ntr}¨I 0.1
¨trte

lm0.001‿⟨2, 500, 1Minn td
lm0.001‿⟨2, 300, 1Minn td
(⊢RMS·lm.E¨)˝td

)r Setplot "scatter"•Out¨ Plot˝(⊑∾lm.E)˘te
2 changes: 1 addition & 1 deletion src/index.org
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +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]]
8. [[./nm.org][A numerical bonsai display]]

#+HTML: </div>
2 changes: 1 addition & 1 deletion src/nm.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- eval: (face-remap-add-relative 'default '(:family "BQN386 Unicode" :height 180)); -*-
#+TITLE: A numerical methods bonsai display
#+TITLE: A numerical bonsai display
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="assets/style.css"/>
#+HTML_HEAD: <link rel="icon" href="assets/favicon.ico" type="image/x-icon">

Expand Down
Loading

0 comments on commit 37d1794

Please sign in to comment.