public function roundtrip(Labeled $batch) : float
    {
        $input = Matrix::quick($batch->samples())->transpose();

        $this->feed($input);

        return $this->backpropagate($batch->labels());
    }
public function roundtrip(Labeled $batch) : float
    {
        $input = Matrix::quick($batch->samples())->transpose();

        $this->feed($input);

        return $this->backpropagate($batch->labels());
    }
public function roundtrip ( Labeled $ batch ) : float { $ input = Matrix :: quick ( $ batch -> samples ( ) ) -> transpose ( ) ; $ this -> feed ( $ input ) ; return $ this -> backpropagate ( $ batch -> labels ( ) ) ; }
Do a forward and backward pass of the network in one call. Returns
the loss from the backward pass.

@param \Rubix\ML\Datasets\Labeled $batch
@return float
Do a forward and backward pass of the network in one call . Returns the loss from the backward pass .