A neural network sample (actually a Multilayer Perceptron, MLP) written in pure type-level TypeScript, just for fun!
Note
Be patient, you may need to wait for a while for TypeScript to infer the types.
See src/main.ts
for the implementation.
You can have a try on TS Playground.