This Rust project is a port of the neural network example from Chapter 1 of "Neural Networks and Deep Learning" by Michael Nielsen. Instead of using the MNIST dataset, this implementation uses the XOR function as the training example.
This is mostly a personal Rust exercise, and you probably don't want to use it for anything.
- Simple feedforward neural network
- Stochastic Gradient Descent for training
- Uses XOR function as the training example (not very useful, but lightweight)
cargo run
Epoch 0: 2 / 4
Epoch 1: 2 / 4
Epoch 2: 2 / 4
...
Epoch 199: 4 / 4
The output varies somewhat from run to run, based on how well the network learns from the initial random weights and biases.
- Original neural network example from Neural Networks and Deep Learning by Michael Nielsen, licensed under CC BY-NC 3.0.