Skip to content

vs-123/syron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]])));
}

About

A Rust library for building, training and running basic neural networks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages