syron

Crates.iosyron
lib.rssyron
version0.1.1
sourcesrc
created_at2022-03-04 04:57:40.457778
updated_at2022-03-04 05:03:27.854642
descriptionSyron is a Rust library for building, training and running basic neural networks
homepagehttps://github.com/vs-123/syron
repositoryhttps://github.com/vs-123/syron
max_upload_size
id543350
size6,697
vs-123 (vs-123)

documentation

https://docs.rs/syron/0.1.0/syron/

README

syron

syron is a Rust library designed to make simple neural networks with ease.

Example

use syron::nn::{Network, Activation};
fn main() {
    // XOR Problem
    let x = ndarray::arr2(&[[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]]);
    let y = ndarray::arr2(&[[0.0], [1.0], [1.0], [0.0]]);
    // Create a network with 2 inputs and 3 hidden layers
    let mut nn = Network::new(2, 3, Activation::Sigmoid);
    nn.train(x, y, 1000);
    println!("{:?}", nn.predict(ndarray::arr2(&[[0.0, 0.0]])));
}
Commit count: 4

cargo fmt