public function compute(Tensor $expected, Tensor $output) : float
    {
        return $expected->negate()->multiply($output->log())->sum()->mean();
    }
public function compute(Tensor $expected, Tensor $output) : float
    {
        return $expected->negate()->multiply($output->log())->sum()->mean();
    }
public function compute ( Tensor $ expected , Tensor $ output ) : float { return $ expected -> negate ( ) -> multiply ( $ output -> log ( ) ) -> sum ( ) -> mean ( ) ; }
Compute the matrix.

@param \Rubix\Tensor\Tensor $expected
@param \Rubix\Tensor\Tensor $output
@return float
Compute the matrix .