urbanlc.analyze.metrics.user_accuracy#

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

Calculate user’s accuracy from a confusion matrix.

Parameters:

m (np.ndarray) – Confusion matrix.

Returns:

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

Return type:

np.ndarray