charmlab / mace

Model Agnostic Counterfactual Explanations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for PyTorch models

raam93 opened this issue · comments

Thanks for this library! I see you support LR and MLP models from sklearn currently, but can you give some pointers on how to make it work with PyTorch or TensorFlow models?

I checked generateSATExplanations.py and found that you convert a model to a logic formula in modelConversion.py, but do so only for four model classes from sklearn. How to replicate this for any model from say PyTorch? In particular, how to update mlp2formula(model, model_symbols) method?