urbanlc.analyze.metrics#

Functions

accuracy(m)

Calculate accuracy from a confusion matrix.

cohen_kappa(m)

Calculate Cohen's Kappa coefficient from a confusion matrix.

confusion_matrix(pred_path, gt_path[, ...])

Calculate the confusion matrix based on predicted and ground truth data.

get_class_distribution(path, downsample_scale)

Calculate the class distribution of land cover map in a specified data path at a specified resolution.

producer_accuracy(m)

Calculate producer's accuracy from a confusion matrix.

user_accuracy(m)

Calculate user's accuracy from a confusion matrix.