Skip to content

Commit

Permalink
Update process.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yotarazona committed Jun 25, 2024
1 parent de1c267 commit 2c4aeed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scikeo/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def confintervalML(matrix, image_pred, pixel_size = 10, conf = 1.96, nodata = No
The cell entries and marginal values of the error matrix are fundamental to both accuracy assessment and area
estimation. The cell entries of the population error matrix and the parameters derived from it must be estimated
from a sample. This function shows how to obtain a confusion matrix by estimated proportions of area with a confidence
interval at 95% (1.96).
interval at 95% (1.96). I strongly recommend reading Olofsson et al. (2014)'s paper for more technical and scientific details
on the implementation of this function.
Parameters:
Expand All @@ -196,7 +197,11 @@ def confintervalML(matrix, image_pred, pixel_size = 10, conf = 1.96, nodata = No
doi:https://doi.org/10.1016/j.rse.2014.02.015.
Note:
Columns and rows in a confusion matrix indicate reference and prediction respectively.
Columns and rows in a confusion matrix indicate reference and prediction respectively. Additionally, the most critical
recommendation is that the sampling design should be a *probability sampling design*. An essential element of probability sampling
is that randomization is incorporated into the sample selection protocol. Various probability sampling designs can be applied for
precision assessment and area estimation, the most commonly used designs being simple random, stratified random, and systematic
(Olofsson et al., 2014).
'''

if not isinstance(matrix, (np.ndarray)):
Expand Down

0 comments on commit 2c4aeed

Please sign in to comment.