Skip to content

A very simple ANN with example usage for classifying MNIST digits

Notifications You must be signed in to change notification settings

n3puiol/rust_neural_network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[WIP] Simple Artificial Neural Network written in Rust

This is a simple implementation of an artificial neural network written in Rust. The goal of this project is to learn about the inner workings of neural networks and to get a better understanding of the Rust programming language.

The built neural network follows a similar structure to TensorFlow's Keras API.

No libraries are used for the neural network implementation, only the standard library of Rust.

An example using the MNIST dataset is provided to demonstrate the usage of the neural network.

Usage

To run the example, you need to download the MNIST dataset and extract it into the data directory. The CSV dataset can be downloaded from the following link: MNIST dataset.

.env file

Create a .env file in the root directory of the project and add the following content:

MNIST_TRAIN_DATA="<path to the training data>"
MNIST_TEST_DATA="<path to the test data>"

Run the example

cargo run --color=always --package rust-neural-network --bin rust-neural-network

About

A very simple ANN with example usage for classifying MNIST digits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages