https://github.com/phibr0/rusty-micrograd
like karpathy/micrograd but written in rust
https://github.com/phibr0/rusty-micrograd
Last synced: 9 months ago
JSON representation
like karpathy/micrograd but written in rust
- Host: GitHub
- URL: https://github.com/phibr0/rusty-micrograd
- Owner: phibr0
- Created: 2025-09-04T07:50:52.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-04T08:53:07.000Z (9 months ago)
- Last Synced: 2025-09-04T09:41:48.793Z (9 months ago)
- Language: Rust
- Size: 1.41 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rusty micrograd

I built this after my "Probabilistic Reasoning and Machine Learning" course.
Learns handwritten digit (mnist) classification from scratch.
```rust
let mut model = Model::new(
&[784, 32, 16, 10],
&[Activation::ReLU, Activation::ReLU, Activation::Softmax],
);
let epochs = 100;
let eta = 0.2;
model.train(&train_data, epochs, eta, Loss::CrossEntropy);
```