explainability
explainability
¶
Hydra configuration for the explain endpoint.
ExplanationWriterConfig
dataclass
¶
ExplanationWriterConfig(save_raw_heatmaps=False, save_overlays=True, image_weight=0.5, overlay_image_format='png')
Settings for how explanations are written to disk.
Attributes:
| Name | Type | Description |
|---|---|---|
save_raw_heatmaps |
bool
|
Whether raw heatmap tensors are saved. |
save_overlays |
bool
|
Whether overlay images are rendered and saved. |
image_weight |
float
|
Blend weight of the camera image in overlays. |
overlay_image_format |
str
|
Overlay image file extension without a dot. |
ExplainabilityConfig
dataclass
¶
ExplainabilityConfig(_target_='versatil.explainability.runner.ExplainabilityRunner', checkpoint_path=MISSING, checkpoint_name=value, output_directory=None, device='auto', source=value, split='all', sample_stride=50, max_samples=None, data_path_override=None, batch_size=1, explanation_types=(lambda: list(VALID_EXPLANATION_TYPES))(), target_camera_keys=None, target_vision_module_names=None, channel_batch_size=32, online=InferenceClientConfig(), writer=ExplanationWriterConfig())
Hydra config for generating xAI insights on policy predictions.
Attributes:
| Name | Type | Description |
|---|---|---|
_target_ |
str
|
Import path instantiated by Hydra. |
checkpoint_path |
str
|
Directory containing the checkpoint, config, and normalizer/tokenizer files used to restore the policy. |
checkpoint_name |
str
|
Checkpoint filename inside |
output_directory |
str | None
|
Optional directory for written explanation files.
When |
device |
str
|
Torch device for attribution, or |
source |
str
|
Explanation source. |
split |
str
|
Dataset split for offline explanations: |
sample_stride |
int
|
Explanation interval. In offline dataset mode, keep every Nth episodic dataset sample. In online inference mode, explain every Nth inference timestep. |
max_samples |
int | None
|
Optional cap on the number of observation windows to
explain. Offline mode applies the cap after |
data_path_override |
str | list[str] | None
|
Optional offline input location to explain instead
of the data path stored in the checkpoint task config.
|
batch_size |
int
|
Number of sampled windows explained per attribution call. |
explanation_types |
list[str]
|
Visual attribution methods to run. |
target_camera_keys |
list[str] | None
|
Optional camera-key allowlist. |
target_vision_module_names |
list[str] | None
|
Optional visual module allowlist. Names include encoding-pipeline entries and decoder-owned VLM vision tower paths. |
channel_batch_size |
int
|
Number of feature channels ablated per forward pass for Ablation-CAM. |
online |
InferenceClientConfig
|
Socket inference client settings for the online source, nested
under the |
writer |
ExplanationWriterConfig
|
Explanation writer settings, nested under the |