-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jointly train autoencoder and classifier #10037
Comments
The code is showed below,
I really don't know how to assign x_c_e to y_e and how to compile the model. But, the error is showed below from
|
My problems are list below:
|
@fchollet |
First: "If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel" Second: I'll answer your question and give you the code because it is simple/quick. This is a straightforward adaptation of the mnist classification/autoencoder tutorials:
|
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!
[Y] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps
[Y] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.
[N] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
[Y] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).
I want to jointly train classifier and autoencoder but I don't kmow how to build the model?
For example, I use VGG16 as classifier, and I want add a autoencoder following the last second convolutional layer since I want to analyse the kernel of last second convolutional layer, but the kernel is too large, hence I try to apply autoencoder to reduce its dimensionality.
I know how to deal with the problem by training classifier and autoencoder independently, but, my model and data is too large.
Could anyone help me?
Thanks in advance!
The text was updated successfully, but these errors were encountered: