-
Notifications
You must be signed in to change notification settings - Fork 32
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
Datasets missing key 'rationale_labels' #15
Comments
Have you done the following step? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encounter the following error trace while running the train scripts as per the instructions:
Traceback (most recent call last):
File "src/train.py", line 77, in
df['rationale_labels'] = df['rationale_labels'].apply(lambda s: torch.tensor(np.asarray([int(i) for i in s.split(',')]), dtype=torch.long))
File "/home/tb662/env/project/lib/python3.8/site-packages/pandas/core/frame.py", line 3807, in getitem
indexer = self.columns.get_loc(key)
File "/home/tb662/env/project/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
raise KeyError(key) from err
KeyError: 'rationale_labels'
I think the data might be missing the 'rationale_labels' column. Will be helpful if this could be fixed because currently I cannot train new models.
The text was updated successfully, but these errors were encountered: