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

gradient tuner overflow #31

Closed
Yansr3 opened this issue Sep 11, 2023 · 4 comments
Closed

gradient tuner overflow #31

Yansr3 opened this issue Sep 11, 2023 · 4 comments

Comments

@Yansr3
Copy link

Yansr3 commented Sep 11, 2023

I'm trying to train an atac topic model for my dataset, and the gradient tuning step failed for my data after several tries experienced gradient overflow. I have around 33000 cells. I followed the filtering steps in the tutorial, have the learning rate set as default (1e-3, 0.1) and randomly downsampled 100k peaks for the training.

The graph for number of reads is as follows.
386502df-6fd9-498d-b077-b851504447f8

Therefore, I don't think it could be caused by high learning rate or too many features. And for outlier cells, I'm not sure if I should perform more filtering.

I'm hoping to seek some help or advice on the gradient tuning step. Or should I just move on to the bayesian step with a rough estimate of topic numbers by myself instead?

@AllenWLynch
Copy link
Collaborator

AllenWLynch commented Sep 12, 2023 via email

@Yansr3
Copy link
Author

Yansr3 commented Sep 12, 2023

Thank you for the information! Yes, I also have RNA-seq data, And I didn't encounter overflow when training the rna model. Is there a relationship between the topic numbers in ran and atac? If there is, I could tak a rough esitmate based on the rna model.

@AllenWLynch
Copy link
Collaborator

AllenWLynch commented Sep 13, 2023 via email

@Yansr3
Copy link
Author

Yansr3 commented Sep 13, 2023

Thank you! This helps a lot.

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

2 participants