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/plot3d.wl # 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 / plot3d.wl` 13 lines ยท 1973 bytes Raw Blame History 1 (* Read-only Wolfram plotting oracle. __DATA__ is literal raw CSV payload JSON, not executable product code. *) 2 rows=Map[ToExpression,ImportString[__INPUT__,"RawJSON"],{2}]; 3 fromBits[b_]:=Module[{s,e,m},s=If[BitShiftRight[b,63]==0,1,-1];e=BitAnd[BitShiftRight[b,52],2047];m=BitAnd[b,2^52-1];If[e==0,s*m*2^-1074,s*(2^52+m)*2^(e-1075)]]; 4 coords=(N[fromBits/@#[[7;;9]]]&/@rows); 5 project[p_]:={240+100*(p[[1]]-p[[2]])*Sqrt[3]/2,160+50*(p[[1]]+p[[2]])-100*p[[3]]}; 6 num[x_]:=ToString[N[x],InputForm]; 7 xy[p_]:=StringRiffle[num/@project[p],","]; 8 origin=project[{0,0,0}]; 9 axes=StringJoin[MapThread[Function[{p,label},With[{q=project[p]},"num[origin[[1]]]<>"\" y1=\""<>num[origin[[2]]]<>"\" x2=\""<>num[q[[1]]]<>"\" y2=\""<>num[q[[2]]]<>"\" stroke=\"black\"/>num[q[[1]]]<>"\" y=\""<>num[q[[2]]]<>"\">"<>label<>""]],{{{1,0,0},{0,1,0},{0,0,1}},{"h0","h1","h2"}}]]; 10 points=StringJoin[MapThread[Function[{p,r},With[{q=project[p],color=If[EvenQ[Total[IntegerDigits[r[[4]],2,4]]],"#2468a2","#b35718"]},"num[q[[1]]]<>"\" cy=\""<>num[q[[2]]]<>"\" r=\"3\" fill=\""<>color<>"\"/>num[q[[1]]+4]<>"\" y=\""<>num[q[[2]]-4]<>"\">"<>ToString[r[[4]]]<>""]],{coords,rows}]]; 11 svg="Learned 3D messages: seed17 parity splitID labels; blue=train, brown=heldout; isometric view"<>axes<>points<>""; 12 csv=ExportString[Prepend[MapThread[Join[{#2[[4]],If[EvenQ[Total[IntegerDigits[#2[[4]],2,4]]],"train","heldout"]},#1]&,{coords,rows}],{"input_id","partition","h0","h1","h2"}],"CSV"]; 13 ExportString[<|"status"->"PASS","sourceCommit"->"`c5992ca`","seed"->17,"split"->1,"arm"->0,"mode"->0,"context"->1,"points"->Length[coords],"projection"->"isometric; no separation or density claim","svg"->svg,"csv"->csv|>,"RawJSON","Compact"->True]