Comments (4)
According to this line, dropout is being applied to the sequence of embeddings after they have been looked up in the embedding.
I'm not sure if this is right, because I think that this has the effect of randomly dropping elements of the embedding vector corresponding to a token rather than dropping whole embedding vectors (post lookup). Instead, whole vectors along the sequence dimension should be dropped out.
Furthermore, I'm pretty sure that the 0 vector doesn't necessarily correspond to the unk token since the embeddings are learned.
from sentence-vae.
Right, this is different from the paper. Unfortunately, I don't have the time to fix this right now. But feel free to do a PR. If you do, please also keep the dropout version as an option.
from sentence-vae.
How about testing phase? We do need to disable dropout right? Based on current implementation, dropout still works in the testing phase.
from sentence-vae.
This is done here
# Enable/Disable Dropout
if split == 'train':
model.train()
else:
model.eval()
from sentence-vae.
Related Issues (20)
- How to get the init hidden state of LSTM? HOT 1
- Word Dropout not working HOT 1
- Question about the inference function HOT 4
- Inference edge-case bug. HOT 4
- Confusion about the batch in model.py(I think batch should be the second dimension.) HOT 3
- Discrete latent variable
- maybe a bug in the train.py HOT 2
- maybe a bug in the kl_anneal_function HOT 1
- Maybe a bug in constructing hidden states. HOT 2
- Maybe a bug: data leak in decoder when bidirectional == True HOT 1
- Unable to download the dataset HOT 2
- Index Error during Inference HOT 2
- Optimiser SGD leads to KL vanishing
- Change in ELBO during training
- inference
- Pre-trained model?
- Wrong usage of Bidirectional GRU HOT 1
- imputation HOT 1
- bi-directional gru
- question on inputs to encoder and decoder
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 sentence-vae.