🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More

micrograd-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micrograd-js

Made for fun - to try and understand a deep learning library from scratch.

1.0.5
latest
Version published
Maintainers
1
Created

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.4

Test

git clone https://github.com/diversen/micrograd-js.git

This runs the main example from the tutorial:

node test/mlp.js

test/mlp.js

This runs the OR, AND, XOR, NOT gates example:

node test/gates.js

test/gates.js

Install

npm install micrograd-js

Usage

import { Value } from 'micrograd-js'
import { MLP } from 'micrograd-js'

License

MIT © Dennis Iversen

FAQs

Package last updated on 24 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts