- TensorFlow Machine Learning Cookbook
- Nick McClure
- 105字
- 2021-04-02 20:36:27
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.