The following code creates a TensorBoard object:
from tensorflow.keras.callbacks import TensorBoard
import time
tensorboard_callback = TensorBoard(
log_dir=f'./logs/mnist{time.time() }',
histogram_freq=1, write_graph=True)
Which of the following statements a) , b) or c) about the above code is false?
A) The log_dir argument is the name of the folder in which this model’s log files will be written.
B) The notation './logs/' indicates that we’re creating a new folder within the logs folder you created previously. The preceding code follows that folder with '/mnist' and the current time. Using the time ensures that each new execution of the notebook will have its own log folder. That will enable you to compare multiple executions in TensorBoard.
C) The histogram_freq argument is the frequency in epochs that Keras will output to the model’s log files. In this case, we’ll write data to the logs for every epoch.
D) When the write_graph argument is True, a graph of the model will be out-put. You can view the graph in the GRAPHS tab in TensorBoard.
E) All of the above statements are true.
Correct Answer:
Verified
Q40: Which of the following statements a), b)
Q41: Which of the following statements a), b)
Q42: Which of the following statements a), b)
Q43: Which of the following statements about a
Q44: A Keras _ layer reshapes its input
Q46: Which of the following statements a), b)
Q47: Which of the following statements a), b)
Q48: To use TensorBoard, before you fit your
Q49: Which of the following statements a), b)
Q50: Which of the following statements is false?
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents