set_genome 0.6.7

A genetic data structure for neuroevolution algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq)]
pub enum MutationError {
    #[error("No two nodes could be connected by a new feed-forward connection.")]
    CouldNotAddFeedForwardConnection,
    #[error("No two nodes could be connected by a new recurrent connection.")]
    CouldNotAddRecurrentConnection,
    #[error("No removable node present in the genome.")]
    CouldNotRemoveNode,
    #[error("No removable feed-forward connection present in the genome.")]
    CouldNotRemoveFeedForwardConnection,
    #[error("No removable recurrent connection present in the genome.")]
    CouldNotRemoveRecurrentConnection,
    #[error("No hidden node to duplicate was present in the genome.")]
    CouldNotDuplicateNode,
}