3. Real-World Deep Learning: Evaluating the Bitcoin Model
Activity 3.01: Optimizing a Deep Learning Model
Solution:
- Using your Terminal, start a TensorBoard instance by executing the following command:
$ cd ./Chapter03/Activity3.01/ $ tensorboard --logdir=logs/
You will see the
SCALARS
page once TensorBoard opens in the browser: - Open the URL that appears on screen and leave that browser tab open as well. Also, start a Jupyter Notebook instance with the following command:
$ jupyter-lab
Here's the screenshot showing the Jupyter Notebook:
Open the URL that appears in a different browser window.
- Now, open the Jupyter Notebook called
Activity3.01_Optimizing_a_deep_learning_model.ipynb
and navigate to the title of the Notebook. Run the cell to, import all the required libraries. - Set the seed to avoid randomness:
np.random.seed(0)
We will load the train and test data like we did...