7 releases (4 breaking)
Uses new Rust 2024
new 0.5.0 | May 4, 2025 |
---|---|
0.4.1 | May 3, 2025 |
0.3.1 | May 3, 2025 |
0.2.0 | May 1, 2025 |
0.1.0 | May 1, 2025 |
#289 in Machine learning
229 downloads per month
28KB
609 lines
Neural Network Study
An implementation of a toy neural network from scratch. The idea is to learn about the workings of neural networks and the underlying math, but also to produce something useful and, most of all, fun.
This project follows a series on neural networks on The Coding Train.
What does it do?
Stage 1: Perceptron
The first step is creating a perceptron, a single "neuron" that can be used to solve linearly separable problems. An example is classifying points on a plane to determine if they're above or below a line:

Stage 2: Multilayer Perceptron - The Neural Network
Once the principle of the perceptron is understood, the next major step in developing a neural network is to create a multilayer perceptron, that is, a small network with inputs, a hidden layer, and outputs.
This evolution of the concept can solve a variety of problems. A classic example is a game of moving a basket to catch falling apples -- and in this enhanced version, avoid the sour lemons!

About This Project
Dependencies
~2.1–3MB
~64K SLoC