radiate-gp 0.0.3

Extensions for radiate. Genetic Programming implementations for graphs (neural networks) and trees
Documentation
#[cfg(test)]
mod test {

    use radiate::*;
    use radiate_gp::*;

    #[test]
    fn test_simpl_tree() {
        let tree = Tree::new(
            TreeNode::new(Op::add())
                .attach(TreeNode::new(Op::constant(1.0)))
                .attach(TreeNode::new(Op::constant(2.0))),
        );

        assert!(tree.root().unwrap().is_valid());
        assert_eq!(tree.height(), 1);
        assert_eq!(tree.size(), 3);
        assert_eq!(tree.eval(&vec![]), 3.0);
    }
}