snap-stanford/GEARS

KeyError: 'val'

Closed this issue · 5 comments

Hi, thanks for sharing. I encountered the following error:
b80ee0de2f44c4405f0b19dce31ab14

my adata.obs:
image

This probably means there's an error in your split. How many perturbations are there in your dataset and which split did you pick

condition/ cell_type variable as follow:
image

I randomly created the condition variable, I'm not quite sure about condition variable

pert_data.prepare_split(split = 'simulation', seed = 1)
I'm not sure how to choose split parameter either

There area few issues here:

Those are too few perturbation categories for the model to perform the default 'simulation' split. I also wouldn't recommend training GEARS on only a single perturbation under any split.

Lastly, the current version of GEARS is not set up to predict effects across multiple cell types as this is not accounted for in the model inputs.

Thank you very much, i will try to modify the adata according to your suggestions.