Crates.io | neural_networks |
lib.rs | neural_networks |
version | 0.0.2 |
source | src |
created_at | 2022-04-24 11:24:15.382579 |
updated_at | 2022-06-17 03:56:53.332484 |
description | A simple implementation of neural network library |
homepage | |
repository | https://github.com/abhishekiitd327/neural_networks |
max_upload_size | |
id | 573072 |
size | 24,287 |
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);
}