Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nachiket273/micrograd_rs

A Beginner's implementation of Andrej karpathy's micrograd in Rust.
https://github.com/nachiket273/micrograd_rs

micrograd mlp neural-networks relu rust study-project

Last synced: about 19 hours ago
JSON representation

A Beginner's implementation of Andrej karpathy's micrograd in Rust.

Awesome Lists containing this project

README

        

# micrograd_rs
[![Crate](https://img.shields.io/crates/v/micrograd_rs_nt.svg)](https://crates.io/crates/micrograd_rs_nt)


A Rust Beginner's implementation of [Andrej karpathy's micrograd](https://github.com/karpathy/micrograd).

Here's [Link](https://www.youtube.com/watch?v=VMj-3S1tku0) to the YouTube video.

Also thanks to [micrograd-rust](https://github.com/sloganking/micrograd-rust) for reference implementation in rust.

## The current implementation is limited to:

==============================================

* scalar valued autograd
* Implementation of forward and backward pass for arithmetic operations and power operation.
* Implementation of forward and backward pass for activation functions - tanh and relu.

## Sample Output:

===============================================

![Sample Training Output for MLP](./img/train.png)


## TO-DO:
==========================================
* graph visulization using libraries like [graphviz](https://graphviz.org/download/)
* Implementation of Tensor type library from scratch
* Improve implementation of MLP, activations etc for Tensors.