Skip to content
Advertisement

Split autoencoder on encoder and decoder keras

I am trying to create an autoencoder for:

  1. Train the model
  2. Split encoder and decoder
  3. Visualise compressed data (encoder)
  4. Use arbitrary compressed data to get the output (decoder)
JavaScript

How to split train it and split with the trained weights?

Advertisement

Answer

Make encoder:

JavaScript

Make decoder:

JavaScript

Make autoencoder:

JavaScript

Now you can use any of them any way you want to.

  1. train the autoencoder
  2. use the encoder and decoder
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement