rex_xai.extraction¶
Classes¶
Module Contents¶
- class rex_xai.extraction.Explanation(maps, prediction_func, data, args, run_stats, keep_all_maps=False)¶
- Parameters:
data (rex_xai.input_data.Data)
args (rex_xai.config.CausalArgs)
run_stats (dict)
- target_map¶
- explanation: torch.Tensor | None = None¶
- final_mask = None¶
- explanation_confidence = 0.0¶
- prediction_func¶
- data¶
- args¶
- run_stats¶
- extract(method)¶
- Parameters:
method (rex_xai.config.Strategy)
- blank()¶
- set_to_true(coords, mask=None)¶
- __global(map=None, wipe=False)¶
- __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)¶