Defining the encoder

Define the input:

x = Input(shape=(original_dim,))

Encoder hidden layer:

h = Dense(intermediate_dim, activation='relu')(x)

Compute the mean and the variance:

z_mean = Dense(latent_dim)(h)
z_log_var = Dense(latent_dim)(h)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset