Conventions
In this book, there are many styles of text that distinguish between the types of information. Code words in text are shown as follows: "We then set the batch_size
variable."
A block of code is set as follows:
embedding_mat = tf.Variable(tf.random_uniform([vocab_size, embedding_size], -1.0, 1.0)) embedding_output = tf.nn.embedding_lookup(embedding_mat, x_data_ph)
Some code blocks will have output associated with that code, and we note this in the code block as follows:
print('Training Accuracy: {}'.format(accuracy))
Which results in the following output:
Training Accuracy: 0.878171
Important words are shown in bold.
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Get TensorFlow Machine Learning Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.