From 6ddb29f881e5b490992d8a48f31c9eba4cf58020 Mon Sep 17 00:00:00 2001 From: Yonatan Tarazona Date: Fri, 18 Oct 2024 10:51:48 -0500 Subject: [PATCH] 6 decimal -> uncertainty --- scikeo/process.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scikeo/process.py b/scikeo/process.py index 06c00b4..b6afbc2 100644 --- a/scikeo/process.py +++ b/scikeo/process.py @@ -287,7 +287,7 @@ def confintervalML(matrix, image_pred, pixel_size = 10, conf = 1.96, nodata = No namesRow.extend(['Total']) # error matrix (DataFrame) in proportions of area - cm_prop_area = pd.DataFrame(np.round(mat_conf, 4), columns = namesCol, index = namesRow) + cm_prop_area = pd.DataFrame(np.round(mat_conf, 6), columns = namesCol, index = namesRow) # overall accuracy oa = np.diag(matConf).sum()/np.sum(matConf) @@ -355,15 +355,15 @@ def print_info(params): print('***** Confusion Matrix by Estimated Proportions of area an uncertainty*****') print('') print('Overall accuracy with 95%') - print(f'{oa:.4f} ± {e:.4f}') + print(f'{oa:.6f} ± {e:.6f}') print('') print('Confusion matrix') print(matrixCEA) print('') print('User´s accuracy with 95%') for i in range(b.shape[0]): - print(f'{f[i]}: {a[i]:.4f} ± {b[i]:.4f}') + print(f'{f[i]}: {a[i]:.6f} ± {b[i]:.6f}') print('') print('Estimating area (Ha) and uncertainty with 95%') for i in range(b.shape[0]): - print(f'{f[i]}: {c[i]:.4f} ± {d[i]:.4f}') + print(f'{f[i]}: {c[i]:.6f} ± {d[i]:.6f}')