pub fn new(
        initial_input_size: i32,
        layers_config: Vec<i32>,
        activate: fn(f64) -> f64,
    ) -> Network {
        let mut inputs_count = initial_input_size;
        let mut layers: Vec<layer::Layer> = Vec::new();
        for neurons_count in layers_config {
            layers.push(layer::Layer::new(neurons_count, inputs_count));
            inputs_count = neurons_count;
        }
        Network {layers: layers, activate: activate}

    }
// for given vector initialize where layers count is a length of vector
// and neurons in each layer it is a value in vector index
for given vector initialize where layers count is a length of vector
and neurons in each layer it is a value in vector index
for given vector initialize where layers count is a length of vector and neurons in each layer it is a value in vector index
pub fn new(
        initial_input_size: i32,
        layers_config: Vec<i32>,
        activate: fn(f64) -> f64,
    ) -> Network {
        let mut inputs_count = initial_input_size;
        let mut layers: Vec<layer::Layer> = Vec::new();
        for neurons_count in layers_config {
            layers.push(layer::Layer::new(neurons_count, inputs_count));
            inputs_count = neurons_count;
        }
        Network {layers: layers, activate: activate}
    }
pub fn new ( initial_input_size : i32 , layers_config : Vec < i32 > , activate : fn ( f64 ) -> f64 , ) -> Network { let mut inputs_count = initial_input_size ; let mut layers : Vec < layer :: Layer > = Vec :: new ( ) ; for neurons_count in layers_config { layers . push ( layer :: Layer :: new ( neurons_count , inputs_count ) ) ; inputs_count = neurons_count ; } Network { layers : layers , activate : activate } }
for given vector initialize where layers count is a length of vector
and neurons in each layer it is a value in vector index
for given vector initialize where layers count is a length of vector and neurons in each layer it is a value in vector index
initial_input_size
i32
layers_config
Vec<i32>
activate
fn(f64) -> f64
initial_input_size
i32
layers_config
Vec<i32>
activate
fn(f64) -> f64