Crate cge [] [src]

An implementation of the CGE neural network encoding. The Network struct has methods for evaluating a neural network, resetting its state, and saving to and loading from files and strings.

Examples

use cge::Network;

// Load a neural network from a file
let mut network = Network::load_from_file("neural_network.ann").unwrap();
 
// Get the output of the neural network with the specified inputs
let result = network.evaluate(&vec![1.0, 1.0]);

// Reset the state of the neural network
network.clear_state();

Reexports

pub use self::network::Network;
pub use self::transfer::TransferFunction;

Modules

gene
network

The neural network struct.

transfer

Option type for setting the transfer function.