Skip to content

Instantly share code, notes, and snippets.

View jeffasante's full-sized avatar

Jeffrey Asante jeffasante

View GitHub Profile
@jeffasante
jeffasante / neural_network_from_scratch_in_rust.rs
Last active August 5, 2024 21:54
Unraveling the mysteries of neural networks: A hands-on guide to building a micrograd from the ground up, exploring backpropagation in detail using RUST. Inspired by Karpathy's micrograd.
// Authors: Jeff Asante
// Github: https://gist.github.com/jeffasante/
use std::cell::RefCell;
use std::collections::HashSet;
use std::fmt::{Display, Formatter};
// utils
fn exp(x: f64) -> f64 {