-
use this code to replace the image placeholder for the nn image: <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NN Animation (Canvas)</title>
<style>
body { margin:0; font:14px system-ui, sans-serif; background:#0b1020; color:#dce3f1 }
#ui { position:fixed; inset:auto 12px 12px 12px; display:flex; gap:8px; align-items:center }
button, select { background:#182036; color:#dce3f1; border:1px solid #2a3456; border-radius:10px; padding:8px 10px; cursor:pointer }
#c { display:block; width:100vw; height:100vh }
</style>
</head>
<body>
<canvas id="c"></canvas>
<div id="ui">
<label>Pass:
<select id="mode">
<option value="forward">Forward (activations)</option>
<option value="backward">Backward (gradients)</option>
</select>
</label>
<label>Speed <input id="speed" type="range" min="0.2" max="3" step="0.1" value="1"></label>
<button id="shuffle">Shuffle Weights</button>
</div>
<script>
/*
Goal: Animate signals along edges of a feedforward NN.
In… -
initial commit