Implementing autoencoder in TensorFlow 2.0
blog.senti.com.ph/implementing-an-autoencoder...Posted Mar 27, 2019, 5:22 AM UTC
Posted Mar 27, 2019, 5:22 AM UTC
Thank you for the tutorial,I know keras but I am new to tensorflow keras can you please explain what is happening in this encoder model.
class Encoder(tf.keras.layers.Layer):
def __init__(self, intermediate_dim):
super(Encoder, self).__init__()
self.hidden_layer = tf.keras.layers.Dense(units=intermediate_dim, activation=tf.nn.relu)
self.output_layer = tf.keras.layers.Dense(units=intermediate_dim, activation=tf.nn.relu)
def call(self, input_features):
activation = self.hidden_layer(input_features)
return self.output_layer(activation)
1.what is the shape of this enoder model? How many inputs and hidden nodes?
2.What is a call function? Where do it get input_features?
3.What is difference between intermediate_dim in hidden_layer = tf.keras.layers.Dense(units=intermediate_dim, activation=tf.nn.relu) and input_features in self.hidden_layer(input_features)?
Thank you for reading the tutorial.
I hope I was able to satisfy your questions. :)
Thank you for the clarification, you tutorial are a good help for me to learn tf.keras. Can you add GANs also to the tutorials?
You're welcome.
I'll see what I can do. :) Though the official tutorial in the TensorFlow website is already good.
Not the sequential or functional api but like how you made a model with class.
[deleted]
Using the MNIST example, what would you change if you wanted to make is to that you could enter a number into the decoder and get an image output?
Hi, @Notjeffjeff. For that matter, we can turn to Conditional VAE. I think this blog by Agustinus Kristiadi is a nice resource on the matter.