Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-train/blob/main/native/neuralese/hadamard.om # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / native / neuralese / hadamard.om` 58 lines ยท 888 bytes Raw Blame History 1 note SPDX-License-Identifier: AGPL-3.0-only 2 note NL1 G0 fixed eight-coordinate mathematical decoder, not a learned channel. 3 note Input scores propose information only. No effects, threshold, or authority. 4 global NM f64 8 5 global NF f64 4 6 global NT f64 4 7 8 fn ndcol j ulong to ulong 9 if eq j 0 10 ret 1 11 end 12 if eq j 1 13 ret 2 14 end 15 if eq j 2 16 ret 4 17 end 18 ret 7 19 end 20 21 fn ndsign r ulong c ulong to f64 22 x = and r c 23 p = ulong 0 24 for b ulong 3 25 p = xor p and shr x b 1 26 end 27 if eq p 0 28 ret 1.0f64 29 end 30 ret -1.0f64 31 end 32 33 fn ndelem r ulong j ulong to f64 34 ret div ndsign r ndcol j fsqrt 8.0f64 35 end 36 37 fn nddec n ulong to int 38 if ne n 8 39 ret 1 40 end 41 note Ordered comparison rejects NaN, infinities, and outside the frozen range. 42 for r ulong 8 43 if not le fabs get NM r 4.0f64 44 ret 2 45 end 46 end 47 for j ulong 4 48 v = 0.0f64 49 for r ulong 8 50 v = add v mul get NM r ndelem r j 51 end 52 put NT j v 53 end 54 for j ulong 4 55 put NF j get NT j 56 end 57 ret 0 58 end