Closed fdamani closed 3 years ago
Sorry for my delay on this.
In practice the encoder posterior will not perfectly match the prior N(0,1). What I'd do is pass the zinc dataset through the encoder, record the mean and standard deviation, then randomly sample from that distribution to get better samples from the model.
Hello,
I'd to sample a batch of molecules from a pretrained GrammarVAE. Using encode_decode_zinc.py as inspiration, I first loaded the grammar_weights and grammar_model. I then sample from a standard Normal and then call the decode function on the grammar model using a sample.
Does this seem like a reasonable way to get samples from the generative model? The code above runs but the outputted molecules seem off. For example, if I plot the empirical distribution of QED scores using the sampled molecules to the empirical distribution of QED scores from the zinc dataset, the empirical distribution from GrammarVAE is highly overdispersed and on average has a lower QED score.