Comments (3)
Hi @Ahmadrezauf,
The hypothesis that "BCE on the training data converges to 0 for a large network" should be true for a deterministic autoencoder. However, there are two sources of regularization in a bayesian VAE that should prevent that from happening: 1) sampling from the approximate posterior z~q(z|x)
(true for any VAE) 2) sampling from decoder parameters (true for bayesian VAEs). Did you set the KL coefficient to zero for both? How small was your learning rate (it should not be too small either to allow convergence)?
from eve.
Hi @pascalnotin Thanks a lot for your response. So I have set the KL to zero for both, and a very small learning rate such as 1e-5. The problem gets solved when removing the logsoftmax from the end of the decoder though. I don't understand that in the end as well, since the BCEwithLogits already applies a sigmoid to the create logits. With having that and a very small learning rate, the BCE doesn't go to zero.
from eve.
Interesting! Your response just reminded me that there is another reason why the BCE may not converge to zero (and why we use the BCEwithLogits): the vocabulary we use for modeling is comprised of the 20 standard amino acids. However, the sequences in the MSA that we use as our training data also contain gaps (dashes in the data), which we did no want to include in our output (we were mostly interested in predicting missense mutations; gaps in the MSA may have various explanations: indels, the sequence is only overlapping with a sub-domain, etc.). So whenever there is a position with a gap in the input, the resulting BCE will be non-zero regardless of the size of the VAE.
from eve.
Related Issues (8)
- Question about example data HOT 1
- Lots of memory usage when running evol_indices with many sequences HOT 1
- Why do some files contain two evolutionary index in some proteins?
- FYI on small fixes to run standard decoder (bayesian_decoder=false)
- reproducing evolutionary indices with example scripts HOT 2
- About the trained models and ROC curve HOT 2
- Why is EVE's score of a protein missing a large fragment? Like the HCN4 protein HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eve.