Skip to content

hakuzumon/neuralnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Neural Network in Rust

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.

Features

  • Simple feedforward neural network
  • Stochastic Gradient Descent for training
  • Uses XOR function as the training example (not very useful, but lightweight)

Usage

cargo run

Example Output

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.

Acknowledgments

Releases

No releases published

Packages

No packages published

Languages