neural_networks

Crates.ioneural_networks
lib.rsneural_networks
version0.0.2
sourcesrc
created_at2022-04-24 11:24:15.382579
updated_at2022-06-17 03:56:53.332484
descriptionA simple implementation of neural network library
homepage
repositoryhttps://github.com/abhishekiitd327/neural_networks
max_upload_size
id573072
size24,287
Abhishek Kumar (abhishekiitd327)

documentation

README

neural_networks

A neural network library written from in Rust.

MNIST Example:

Step 1: Add neural_networks="0.0.1" in Cargo.toml under dependecies.

Step 2: Download mnist dataset from the dataset folder from the project github. Extract it.

Step 3: Now you can use neural_networks functions as shown in the following mnist example:

use neural_networks::neural_networks::NeuralNetwork;
use neural_networks::{get_accuracy, train};

fn main() {
    let mut nn = NeuralNetwork::new(784, vec![8, 8], 10, 0.1, "sigmoid");
    train(&mut nn, "mnist_train.csv", 5);
    let acc = get_accuracy(&nn, "mnist_test.csv") * 100.0;
    println!("Accuarcy: {}%", acc);
}
Commit count: 10

cargo fmt