smarty_pants

Crates.iosmarty_pants
lib.rssmarty_pants
version1.0.1
sourcesrc
created_at2022-03-03 20:55:40.928941
updated_at2022-03-05 02:24:12.821791
descriptionA light wheight Neural Network library with a focus on ease of use and speed.
homepage
repositoryhttps://github.com/Merlin1846/smarty_pants
max_upload_size
id543112
size27,287
Atticus Sebastiani (Merlin1846)

documentation

https://docs.rs/smarty_pants/latest/smarty_pants/

README

Smarty Pants

Crates.io docs.rs Crates.io Crates.io

This goal of this library is to:

  • Produce NeuralNetworks that will always give the same result when given the same input.
  • Provide methods and functions for the creation, training, running, and parsing of NeuralNetworks
  • Be relatively light wheight and fast.

USAGE

Add this to your Cargo.toml:

[dependencies]
smarty_pants = "0.2.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 some of the functions and methods may not work.

use smarty_pants::neural_network::*;

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.

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.

Commit count: 26

cargo fmt