ModelOriented / DALEXtra

Extensions for the DALEX package
https://ModelOriented.github.io/DALEXtra/
65 stars 10 forks source link

DALEXtra with textual data #64

Closed giuliaass closed 2 years ago

giuliaass commented 3 years ago

Hi, is it possible to explain a keras model (CNN) that has textual data as input with DALEX? I've only seen examples with tabular data. I preprocess the textual data with word embeddings and use them as a input for my CNN.

Thank you in advance!

maksymiuks commented 3 years ago

Inputs for methods served by DALEX and DALEXtra are assumed to be tabular. Could you please elaborate more about the format of your embedded inputs? I'll try to find sth that can help you

giuliaass commented 3 years ago

Hi,

To create my code I followed this example:

https://github.com/jjallaire/deep-learning-with-r-notebooks/blob/master/notebooks/6.1-using-word-embeddings.Rmd

First I have a raw text, then I tokenize the data. I'm also using pretrained embeddings.

Thank you! :-)

hbaniecki commented 2 years ago

For explanations of neural networks, you can check Captum for Python, and a new package innsight for R.