Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Autoencoder(tf.keras.Model):
- def __init__(self, intermediate_dim, original_dim):
- super(Autoencoder, self).__init__()
- self.encoder = Encoder(intermediate_dim=intermediate_dim)
- self.decoder = Decoder(intermediate_dim=intermediate_dim, original_dim=original_dim)
- def call(self, input_features):
- code = self.encoder(input_features)
- reconstructed = self.decoder(code)
- return reconstructed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement