Skip to Content
Mãos à Obra: Aprendizado de Máquina com Scikit-Learn e TensorFlow
book

Mãos à Obra: Aprendizado de Máquina com Scikit-Learn e TensorFlow

by Aurélien Géron
March 2019
Intermediate to advanced
576 pages
20h 51m
Portuguese (Portugal, Brazil)
Alta Books
Content preview from Mãos à Obra: Aprendizado de Máquina com Scikit-Learn e TensorFlow
Autoencoders Empilhados | 441
Visualizando as Reconstruções
Comparar as entradas e as saídas é uma forma de garantir que um autoencoder seja
adequadamente treinado. Elas devem ser bem semelhantes e as diferenças devem ser
detalhes sem importância. Plotaremos dois dígitos aleatórios e suas reconstruções:
n_test_digits = 2
X_test = mnist.test.images[:n_test_digits]
with tf.Session() as sess:
[...] # Treine o Autoencoder
outputs_val = outputs.eval(feed_dict={X: X_test})
def plot_image(image, shape=[28, 28]):
plt.imshow(image.reshape(shape), cmap="Greys", interpolation="nearest")
plt.axis("off")
for digit_index in range(n_test_digits):
plt.subplot(n_test_digits, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Engenharia de IA

Engenharia de IA

Chip Huyen

Publisher Resources

ISBN: 9788550803814