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

KeyError in Training Splits Part #10

Open
gamzengineer opened this issue Jan 10, 2023 · 0 comments
Open

KeyError in Training Splits Part #10

gamzengineer opened this issue Jan 10, 2023 · 0 comments

Comments

@gamzengineer
Copy link

gamzengineer commented Jan 10, 2023

Hi, I tried to running the command on Colab

!python create_splits.py --task dummy_mtl_concat --seed 1 --k 1

And I am getting this error:

Traceback (most recent call last):
File "create_splits.py", line 25, in
dataset = Generic_WSI_MTL_Dataset(csv_path = '/content/drive/MyDrive/Colab Notebooks/MTDL/TOAD/dataset_csv/dummy_dataset.csv',
File "/content/drive/My Drive/Colab Notebooks/MTDL/TOAD/datasets/dataset_mtl_concat.py", line 71, in init
slide_data = self.df_prep(slide_data, self.label_dicts, self.label_cols)
File "/content/drive/My Drive/Colab Notebooks/MTDL/TOAD/datasets/dataset_mtl_concat.py", line 133, in df_prep
data.at[i, 'label'] = label_dicts[0][key]
KeyError: 'Esophagogogastric'

Could anyone please explain why this is happening and how to resolve this error?

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

No branches or pull requests

1 participant