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: 'survival_bin' #1

Open
rongyua opened this issue Mar 15, 2024 · 0 comments
Open

KeyError: 'survival_bin' #1

rongyua opened this issue Mar 15, 2024 · 0 comments

Comments

@rongyua
Copy link

rongyua commented Mar 15, 2024

The following problem occurs when running CUDA_VISIBLE_DEVICES=2,3 nohup 2_HistoPath_train.py --config "/path/to/config_ffpe_train.json"

Traceback (most recent call last):
File "2_HistoPath_train.py", line 610, in
main()
File "2_HistoPath_train.py", line 591, in main
target_label=config.get('target_label', 'vital_status'),
File "2_HistoPath_train.py", line 313, in train_model
survival_bin = batch_dict['survival_bin'].to(device).long()
KeyError: 'survival_bin'

Can you tell me what's going on, I'd be grateful if you could

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