Closed marshuang80 closed 3 years ago
When running create_clmbr_info with the --exclude_patient_ratio parameter, I got the following error message:
--exclude_patient_ratio
TypeError: unhashable type: 'list' on line 168
This is because result["train_patient_ids_with_length"] is a list of tuples (patient_ids, length).
result["train_patient_ids_with_length"]
Taking the first element of each tuple in the list fixes the error:
[x[0] for x in result["train_patient_ids_with_length"]]
Thanks for fixing this! Didn't notice because I usually use a manual patient list (as it's a bit more reliable).
When running create_clmbr_info with the
--exclude_patient_ratio
parameter, I got the following error message:This is because
result["train_patient_ids_with_length"]
is a list of tuples (patient_ids, length).Taking the first element of each tuple in the list fixes the error: