Skip to content

Commit

Permalink
Merge pull request #29 from solaris33/master
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
aymericdamien committed May 24, 2016
2 parents f6ffc19 + 343619c commit 0712966
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/3 - Neural Networks/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@

# Building the encoder
def encoder(x):
# Encoder Hidden layer with relu activation #1
# Encoder Hidden layer with sigmoid activation #1
layer_1 = tf.nn.sigmoid(tf.add(tf.matmul(x, weights['encoder_h1']), biases['encoder_b1']))
# Decoder Hidden layer with relu activation #2
# Decoder Hidden layer with sigmoid activation #2
layer_2 = tf.nn.sigmoid(tf.add(tf.matmul(layer_1, weights['encoder_h2']), biases['encoder_b2']))
return layer_2

# Building the decoder
def decoder(x):
# Encoder Hidden layer with relu activation #1
# Encoder Hidden layer with sigmoid activation #1
layer_1 = tf.nn.sigmoid(tf.add(tf.matmul(x, weights['decoder_h1']), biases['decoder_b1']))
# Decoder Hidden layer with relu activation #2
# Decoder Hidden layer with sigmoid activation #2
layer_2 = tf.nn.sigmoid(tf.add(tf.matmul(layer_1, weights['decoder_h2']), biases['decoder_b2']))
return layer_2

Expand Down

0 comments on commit 0712966

Please sign in to comment.