August 2017
Intermediate to advanced
288 pages
8h 6m
English
The code setup for the autoencoder can directly be converted to a regularized autoencoder by replacing the cost definition with the following lines:
Lambda=0.01cost = tf$reduce_mean(tf$pow(x - y_pred, 2))Regularize_weights = tf$nn$l2_loss(weights)cost = tf$reduce_mean(cost + lambda * Regularize_weights)
Read now
Unlock full access