Closed Imorton-zd closed 7 years ago
@EderSantana @fchollet @tboquet @pasky
ValueError: dimension mismatch in args to gemm
means that your input maybe not have the correct size. Did you check that out?
Also, for text maybe you want to use a recurrent auto-encoder since input text phrases can have different lengths.
@EderSantana Can keras model the recurrent auto-encoder? In fact, I only want to implement the simple auto-encoder or denoising auto-encoder via keras. Would you give me an example? Thanks a lot.
We are working on a Variational Autoencoder example here: https://github.com/fchollet/keras/pull/1750 It should be ready soon.
I don't know [Dense(16, input_dim=32), Dense(8)] mean?
@fengsky401 It's the example in the keras documentation. In fact, I don't know exactly, either. @EderSantana Would you explain the meaning of [Dense(16, input_dim=32), Dense(8)]? Thanks a lot!
containers
get a list of layers as input. You stack that list everytime you do model.add
and model inherits from the Container
class. So encoder = containers.Sequential([Dense(16, input_dim=32), Dense(8)])
initializes the list with all the layers you will need at once, instead of doing two calls to the add
method. Note how there are two layers there Dense(16, input=32)
and Dense(8)
.
@EderSantana could you shed some light on the uses of such a variational AE?
if the documentations here don't help: https://github.com/fchollet/keras/pull/1750/files i'd recommend reading this quick tutorial: http://vdumoulin.github.io/morphing_faces/ or watching this video: https://www.youtube.com/watch?v=P78QYjWh5sM
The main part of my model is above. I have omitted the part of loading data. Would some one give me some suggestions?