Skip to content

Felix1G/fksainetwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fksainetwork

github crates.io docs.rs

A neural network capable of learning and calculating output.
This project is just made for fun :)


Please go to Inner Workings to read more.


Usage

[dependencies]
fksainetwork = "0.1.4"

Example

let layers = [2, 2]; //2 input neurons, 2 output neurons
let activations = [0, 1]; //linear, sigmoid

let mut network = Network::new(&layers, &activations);
//or: let network = load_network(String::from("path/network-file"));

//calculating
let input = [1.0, 1.0];
let output = network.calculate(&input);
println!("{:?}", output);

//learning
let expected = [0.0, 1.0];
network.learn_bpg_mse(0.01, &expected);

//save
save_network(String::from("path/network-file"), &network);
=======
let layers = [2, 2]; //2 input neurons, 2 output neurons
let activations = [0, 1]; //linear, sigmoid

let mut network = Network::new(&layers, &activations);
//or: let network = load_network(String::from("path/network-file"));

//calculating
let input = [1.0, 1.0];
let output = network.calculate(&input);
println!("{:?}", output);

//learning
let expected = [0.0, 1.0];
network.learn_bpg_mse(0.01, &expected);

//save
save_network(String::from("path/network-file"), &network);

Update Patches :)

0.1.3: Added Tanh Activation Function.
0.1.3: Improved Docs.

About

Felix K.S' Neural Network using Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published