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
248 | Capítulo 9: Em Pleno Funcionamento com o TensorFlow
resumo do que você pode, então, escrever no arquivo de eventos usando o file_writer.
Veja o código atualizado:
for batch_index in range(n_batches):
X_batch, y_batch = fetch_batch(epoch, batch_index, batch_size)
if batch_index % 10 == 0:
summary_str = mse_summary.eval(feed_dict={X: X_batch, y: y_batch})
step = epoch * n_batches + batch_index
file_writer.add_summary(summary_str, step)
sess.run(training_op, feed_dict={X: X_batch, y: y_batch})
[...]
Evite registrar estatísticas de treinamento em cada etapa de treina-
mento pois isso reduzirá sua velocidade signicativamente.
Finalmente, encerre ...
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