peal.teachers.spray_teacher.append_attributions¶
- peal.teachers.spray_teacher.append_attributions(attribution_database_file, index, attributions, predictions, labels, dataset_split)[source]¶
Write a batch of attributions, predictions, labels and splits at
index.- Parameters:
index (int)
attributions (torch.Tensor)
predictions (torch.Tensor)
labels (torch.Tensor)
dataset_split (ndarray)