Struct revonet::neproblem::XorProblem
[−]
[src]
pub struct XorProblem {}
Classical noiseless XOR problem with 2 binary inputs and 1 output.
Methods
impl XorProblem
[src]
fn new() -> XorProblem
Trait Implementations
impl NeuroProblem for XorProblem
[src]
fn get_inputs_num(&self) -> usize
Number of input variables.
fn get_outputs_num(&self) -> usize
Number of output (target) variables.
fn get_default_net(&self) -> MultilayeredNetwork
Returns random network with default number of inputs and outputs and some predefined structure. Read more
fn compute_with_net<T: NeuralNetwork>(&self, nn: &mut T) -> f32
Compute fitness value for the given neural network. Read more