urbanlc.analyze.metrics.producer_accuracy#

urbanlc.analyze.metrics.producer_accuracy(m: ndarray) ndarray#

Calculate producer’s accuracy from a confusion matrix.

Parameters:

m (np.ndarray) – Confusion matrix.

Returns:

Producer’s accuracy calculated as the diagonal elements divided by the sum of each column in the matrix.

Return type:

np.ndarray