public function feed(Matrix $input) : Matrix
    {
        $input = $this->input->forward($input);

        foreach ($this->hidden as $hidden) {
            $input = $hidden->forward($input);
        }

        return $this->output->forward($input);
    }
public function feed(Matrix $input) : Matrix
    {
        $input = $this->input->forward($input);

        foreach ($this->hidden as $hidden) {
            $input = $hidden->forward($input);
        }

        return $this->output->forward($input);
    }
public function feed ( Matrix $ input ) : Matrix { $ input = $ this -> input -> forward ( $ input ) ; foreach ( $ this -> hidden as $ hidden ) { $ input = $ hidden -> forward ( $ input ) ; } return $ this -> output -> forward ( $ input ) ; }
Feed a batch through the network and return a matrix of activations.

@param \Rubix\Tensor\Matrix $input
@return \Rubix\Tensor\Matrix
Feed a batch through the network and return a matrix of activations .