Giter Club home page Giter Club logo

mini-jax-nn's Introduction

mini-jax-nn

Minimal neural network demonstration built using JAX. This serves as a starting point to creating your own neural network. The network is trained using Mini-batch SGD and is taught to predict the forward integration step of the Lorenz Attractor ODE.

Lorenz attractor animation

Requirements

You need a Python interpreter with JAX and matplotlib. Example:

python3 -m venv .venv  # Create a new virtual environment in the '.venv' directory
source .venv/bin/activate  # Activate the virtual environment
pip install jax jaxlib matplotlib  # Install packages using pip

Tips for Further Development

A logical next step would be to make the Python class more portable by working around JAX's limitations using PyTrees: https://jax.readthedocs.io/en/latest/pytrees.html

One could also implement more adaptive Gradient Descent methods like AdaGrad, RMSProp and Adam.

Citations

JAX:

@software{jax2018github,
  author = {James Bradbury and Roy Frostig and Peter Hawkins and Matthew James Johnson and Chris Leary and Dougal Maclaurin and George Necula and Adam Paszke and Jake Vander{P}las and Skye Wanderman-{M}ilne and Qiao Zhang},
  title = {{JAX}: composable transformations of {P}ython+{N}um{P}y programs},
  url = {http://github.com/google/jax},
  version = {0.3.13},
  year = {2018},
}

JAX tutorials, specifically: https://jax.readthedocs.io/en/latest/notebooks/Neural_Network_and_Data_Loading.html

mini-jax-nn's People

Contributors

walid-rovo avatar

Watchers

Kostas Georgiou avatar  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.