SCALE
SCALE copied to clipboard
ValueError: Input contains NaN, infinity or a value too large for dtype('float32').
Hi, I encountered the following error when running SCALE. I have checked my data matrix. The maximum value is 35, the minimum is 0 and there is no na value. Just wondering how to fix the problem? Thanks!
Traceback (most recent call last):
File "/home-4/[email protected]/scratch/software/scale/SCALE/SCALE.py", line 134, in
See the note on the README page: If come across the nan loss, try another random seed filter peaks with harsher threshold, e.g. -x 0.04 or 0.06 filter low quality cells, e.g. --min_peaks 400 or 600 change the initial learning rate, e.g. --lr 0.0002
this error is not caused by your input data containing nan values, but due to the exploded gradient caused by some outlier samples in training process, filtering some low quality cells or rare peaks usually solve this issue.