This goal of this library is to:
NeuralNetworks
that will always give the same result when given the same input.NeuralNetworks
Add this to your Cargo.toml:
Toml
[dependencies]
smarty_pants = "0.1.0"
To create a new network simply call the new function with the wanted parameters and store it somewhere. Make sure it's mutable other wise many of the functions and methods may not work.
``` Rust use smartypants::neuralnetwork::*;
fn main() { let mut network:NeuralNetwork = NeuralNetwork::new(1.0,10,10,3); } ```
Then simply call the run()
method to run it with the arguments as the input/s.
Rust
let output:Vec<f64> = network.run(vec![1.0,2.0,3.0]);
It will output a Vector<f64>
containing the output of the network. For more information please see the documentation or a more detailed example.