gao-lab/GLUE

Array of nans when running scglue.models.fit_SCGLUE

Opened this issue · 2 comments

This is what I'm seeing. I made sure to get rid of all NaNs where I could find them but I think it may be a problem with how I configured the dataset.

Screenshot 2024-08-10 at 11 46 28 PM

I have the same problem, do you solve it?

Hi, you can try to use gradient_clip in the optimization process or adjust the batch size to avoid the problem. This should be caused by numerical problems.