You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performs the evaluation of the data stored in a pickled file according to all the measures, categories and choices of processing
263
+
264
+
:param data: dictionary containing all the data to be used for the comparison; possible keys include "pred_loc", "ref_loc", "pred_prob",
265
+
:param category: task to be considered choice among ImLC, ObD, SemS, InS
266
+
:param measures_pcc: list of per class counting measures (these need to be adequate for the chosen task category)
267
+
:param measures_mcc: list of multi class counting measures
268
+
:param measures_boundary: list of measures to assess boundary quality
269
+
:param measures_overlap: list of measures to assess overlap quality
270
+
:param measures_mt: list of multi-threshold measures
271
+
:param measures_detseg: list of measures assessing jointly detection and segmentation performance
272
+
:param measures_cal: list of calibration measures (only available for image level classification class)
273
+
:param localization: choice for localization strategy (used in Instance segmentation and Object detection tasks)
274
+
:param assignment: choice for the assignment strategy (used in Instance segmentation and Object detection tasks)
275
+
:param pixdim: pixel dimensions as list
276
+
:param flag_map: indication whether nifti images indicating true positive elements for the reference, the prediction and errors should be created (done only for instance segmentation)
277
+
:param file: name of files
278
+
:param thresh_ass: threshold chosen for the assignment (default 0.5)
279
+
:param case: indication of the handling of cases separately (True) or jointly (False)
280
+
:param flag_fp_in: indicates that false positive should be accounted for
281
+
:param ignore_missing: indicates whether the missing predictions should be considered in the overall assessment (True) or not (False)
109
282
"""
110
283
111
284
def__init__(
@@ -163,6 +336,11 @@ def __init__(
163
336
self.get_stats_res()
164
337
165
338
defcheck_valid_measures_cat(self):
339
+
"""
340
+
Function checking whether the category and the combination of measures suggested are suitable for continuing the process
341
+
342
+
:return: flag_valid
343
+
"""
166
344
flag_valid=True
167
345
ifself.categorynotin ['ImLC','SemS','InS','ObD']:
168
346
warnings.warn('No appropriate category chosen, please choose between ImLC, SemS, InS and ObD')
0 commit comments