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

Implementation of Conditional Variational Auto-encoder #9

Open
Cicilalal opened this issue Apr 6, 2022 · 4 comments
Open

Implementation of Conditional Variational Auto-encoder #9

Cicilalal opened this issue Apr 6, 2022 · 4 comments

Comments

@Cicilalal
Copy link

Hi, when I want to implement CVAE, I set use_mmd=False and beta = 0 in Class TRVAE. Is this right? Is there anything else that needs to be changed when loading and training query data?
I have another question. According to the paper "Mapping single-cell data to reference atlases by transfer learning", shouldn't MMD in trvae model be added to the first layer of decoder? Why is MMD added to latent space by default in source code?
When I add MMD to the first layer of the decoder, I don't know why I can't get a good integration result.
Thank you in advance.

@M0hammadL
Copy link
Member

Hi, mmd =0 is mimicks a normal cvae. For your second question, we found mmd on Z results in better integration and easier to optmize thus we changed it but for the paper, mmd on first decoder layer were used but as said that is harder to converge and optimize.

@Cicilalal
Copy link
Author

I am not sure when I set “use_mmd=False“ and ”beta = 0“(beta is the scaling factor for MMD loss),is mmd equal to 0?

@M0hammadL
Copy link
Member

That is correct

@Cicilalal
Copy link
Author

It seems the paper does not explain the reconstruction methods for CVAE(MSE) and CVAE(NB). "MSE" seems to refer to the mean square error between intput and the reconstruction of input, but I don't know how to understand "NB loss". Does it have something in common with the "NB" loss of SCVI?

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