Solved

The Following Code Creates a TensorBoard Object

Question 45

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents