ssemeniuta / textvae Goto Github PK
View Code? Open in Web Editor NEWTheano code for experiments in the paper "A Hybrid Convolutional Variational Autoencoder for Text Generation."
Theano code for experiments in the paper "A Hybrid Convolutional Variational Autoencoder for Text Generation."
Dropbox link is no longer working :)
Hello! I have a simple and possibly silly question here. In my training runs, the kld
term, as logged to costs
by vae.py
, is always negative, creeping upwards toward zero. Is that expected behavior?
Then, I see that the kld
is subtracted from reconstruction_loss
in the calculation of the overall cost
. Shouldn't kld
be positive, and added to reconstruction_loss
?
Here's an example of what I'm seeing:
(I've set anneal_start
=0 and anneal_end
=100 here just for demonstration purposes.)
Thanks for a great paper and a very usable code release!
What is the license for the Theano code in the repo?
loading exp/twittervae.charlevel.z_100.len_128.p_0.00.lstmsz_1000.alpha_0.20/model.flt
File "C:/Users/eyaler/Dropbox/python/text_vae/textvae/twitter_vae_sample_charlevel.py", line 163, in
main(**vars(args))
File "C:/Users/eyaler/Dropbox/python/text_vae/textvae/twitter_vae_sample_charlevel.py", line 31, in main
model.load("exp/%s/model.flt" % name)
File "C:\Users\eyaler\Dropbox\python\text_vae\textvae\nn\models\base_model.py", line 89, in load
params = flt.load()
File "C:\Users\eyaler\Dropbox\python\text_vae\textvae\nn\utils.py", line 77, in load
arr = self.load_array()
File "C:\Users\eyaler\Dropbox\python\text_vae\textvae\nn\utils.py", line 104, in load_array
return arr.reshape(dims)
ValueError: cannot reshape array of size 100 into shape (259,)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.