iota2.validation.results_utils
utility functions for report generation
Functions
|
from a list of confusion matrix compute the mean of each confusion |
|
concatenates the csv files produces by sampleselection step result_folder: folder where output csv will be written nomenclature_path: file where labels nomenclature is defined outrates_path: path of the OTB generated outrates.csv files seed: number of the seed regions: set of region numbers labels_conversion: maps i2-encoded label to original label |
|
usage : generate a figure representing the confusion matrix |
|
usage : from a csv file representing a confusion matrix generate the corresponding figure |
|
use to extract coefficients (Precision, Recall, F-Score, OA, K) from a confusion matrix. |
|
usage parse color file |
|
get confusion max by class |
|
use to compute mean coefficient and 95% confidence interval. |
|
return the maximum len of all labels |
|
usage parse nomenclature file |
|
search path to find the regions and seeds of outrates files |
|
usage convert normalise confusion matrix to a RGB image |
|
convert values to a RGB code thanks to a colormap |
|
usage convert normalise confusion matrix to a RGB image |
|
searches for all existing sample selections csv files and for each seed, merges them in a single file output_path: output path root containing learningSamples folder and sampleSelections folders nomenclature_path: file where labels nomenclature is defined labels_conversion: maps i2-encoded label to original label |
|
|
|
function use to normalize a numpy array representing a confusion matrix with ref as row and production in column |
|
parse OTB's confusion matrix |
|
usage : use to remove samples with the undecidedlabel label from the confusion matrix |
|
usage : sum-up statistics in a txt file |
Classes
|
Dictionary that remembers insertion order |