GithubHelp home page GithubHelp logo

minigrad's Introduction

MiniGrad

- a Mini Auto Differentiation / Gradient Descent library for teaching purposes.
Ref: micrograd, and other online webs.

Probably one of the lightest NN library online.
much faster for small datasets.
Pros: small space, fast runtime. easy to use for small datasets.
Cons: not optimized in terms of big datasets.

Example

Prereqs: pip3 install numpy
Run: python3 example.py

Example Output: [0, 1, 1, 0]

Math Explanation

Math Explanation for .backward() (for educational purposes).
It could be found there.

Math Explanation for .backward_opt() (for better and faster convergence).
It could be found there.

Math Explanation for multi-D y (./iris/minigrad_iris.py).
It could be found there.

Optimizers.

Optimizer is used by the library by default.
RAdam (Rectified Adam), which introduces a rectification term in addition to the popular standard Adam optimizer (which uses Momentum and RMSprop and a bias-correction mechanism). It performs well for small datasets.

Multi-D Y

For additional support for multi-D y, check out /iris. I seperated them out so it's easier to study the basics bc it's more of a tutorial.

minigrad's People

Contributors

haixu-qin avatar

Stargazers

Resonance Router avatar dani avatar  avatar Jhoan Martínez  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.