rex_xai.multi_explanation

generate multiple explanations from a responsibility landscape <pixel_ranking>

Classes

MultiExplanation

Module Contents

class rex_xai.multi_explanation.MultiExplanation(maps, prediction_func, data, args, run_stats)

Bases: rex_xai.extraction.Explanation

explanations = []
explanation_confidences = []
__repr__()
Return type:

str

save(path, mask=None, multi=None, multi_style=None, clauses=None)
show(path=None, multi_style=None, clauses=None)
extract(method=None)
__dice(d1, d2)

calculates dice coefficient between two numpy arrays of the same dimensions

separate_by(dice_coefficient, reverse=True)
Parameters:

dice_coefficient (float)

contrastive(clauses)
__random_step_from(origin, width, height, step=5)
__random_location()