Phpml\Metric\ConfusionMatrix::generateMatrixWithZeros PHP Method

generateMatrixWithZeros() private static method

private static generateMatrixWithZeros ( array $labels ) : array
$labels array
return array
    private static function generateMatrixWithZeros(array $labels) : array
    {
        $count = count($labels);
        $matrix = [];
        for ($i = 0; $i < $count; ++$i) {
            $matrix[$i] = array_fill(0, $count, 0);
        }
        return $matrix;
    }