1.0.5 • Published 3 years ago
micrograd-js v1.0.5
micrograd-js
Made for fun in order to try and understand a deep learning library from scratch.
All the code is written using the "The spelled-out intro to neural networks and backpropagation: building micrograd" by Andrej Karpathy
This is written in javascript in order "to type it out" myself - in another language.
The original code is written in python which is a better language for the purpose.
But I wanted to try it out in javascript.
Requirements
nodejs >= 14.17.4
I know it won't work with nodejs <= v12.22.4
nvm use v14.17.4Test
git clone https://github.com/diversen/micrograd-js.gitThis runs the main example from the tutorial:
node test/mlp.jsThis runs the OR, AND, XOR, NOT gates example:
node test/gates.jsInstall
npm install micrograd-jsUsage
import { Value } from 'micrograd-js'
import { MLP } from 'micrograd-js'License
MIT © Dennis Iversen