rex_xai.extraction

Classes

Explanation

Module Contents

class rex_xai.extraction.Explanation(maps, prediction_func, data, args, run_stats, keep_all_maps=False)
Parameters:
target_map
explanation: torch.Tensor | None = None
final_mask = None
explanation_confidence = 0.0
prediction_func
data
args
run_stats
__repr__()
Return type:

str

extract(method)
Parameters:

method (rex_xai.config.Strategy)

blank()
set_to_true(coords, mask=None)
__global(map=None, wipe=False)
__generate_circle_coordinates(centre, radius)
Parameters:

radius (int)

__draw_circle(centre, start_radius=None)
compute_masked_responsibility(mask)
__spatial(centre=None, expansion_limit=None)
save(path, mask=None, multi=None, multi_style='', clauses=None)
heatmap_plot(path=None)
surface_plot(path=None)
show(path=None)