I'm trying to use the sensitivity_max function from Captum together with LIME (LimeTabularExplainer.explain_instance) as the explanation function. Since explain_instance only works on individual samples, I tried writing a wrapper to make it compatible — but I keep running into errors.
Has anyone managed to successfully use sensitivity_max with LIME? A minimal working example or any tips on writing a correct wrapper would be greatly appreciated!