alibi icon indicating copy to clipboard operation
alibi copied to clipboard

AnchorText - fix metadata

Open RobertSamoilescu opened this issue 2 years ago • 0 comments

Currently, all parameters, correct or incorrect (misspelled), are included in the metadata. https://github.com/SeldonIO/alibi/blob/390a255403d61e8d7f87123f745b678b0a5e6753/alibi/explainers/anchor_text.py#L1229

The valid parameters are stored in self.perturb_opts, which is set along with all_opts in: https://github.com/SeldonIO/alibi/blob/390a255403d61e8d7f87123f745b678b0a5e6753/alibi/explainers/anchor_text.py#L1220-L1222

This should be an easy fix. Get rid of all_opts and update self.meta['params'] with self.peturb_opts.

RobertSamoilescu avatar Jul 30 '21 12:07 RobertSamoilescu