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.
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();
The neural network struct.
Option type for setting the transfer function.