Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running text_classification_introspective_rationale_explainer.ipynb with multi-class dataset #222

Open
HenryLiuPI opened this issue Sep 4, 2023 · 0 comments

Comments

@HenryLiuPI
Copy link

I'm getting RuntimeError: multi-target not supported at ..\aten\src\THNN/generic/ClassNLLCriterion.c:20 while trying to feed multi-class dataset.

My training data looks like this. I'm using one-hot format as label.
image

I'm getting the error on explainer.fit(df_train, df_test)
image

The dataset is a multi-class dataset and has 8 labels in total. Each sample may contain multi labels. What format should I use to represent the label?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant