Open rahulnair23 opened 4 years ago
The CEM explainer will treat all values as real. For special treatment of categorical variables as well as only black-box access you will have to look at its model agnostic version (MACEM) which is not part of the toolkit but is available through an IBM product called Watson Openscale. Hope this helps.
I'm looking to use the contrastive explainer on tabular data which the docs state is supported.
What is the recommended mechanism to deal with categorical features for this explainer?
I've one-hot encoded and then normalized like so:
The resulting pertinent negatives and positives adjust all values of a category. As an example, here is the
delta_pn
(which I understand to be the difference needed change the classification) for thesex
feature which is binary in this dataset.The change impacts both categories. Its unclear how to do the inverse transform for these cases when using one-hot encoding.