Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Applied TensorFlow and Keras Workshop

You're reading from   The Applied TensorFlow and Keras Workshop Develop your practical skills by working through a real-world project and build your own Bitcoin price prediction tracker

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781800201217
Length 174 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Luis Capelo Luis Capelo
Author Profile Icon Luis Capelo
Luis Capelo
Harveen Singh Chadha Harveen Singh Chadha
Author Profile Icon Harveen Singh Chadha
Harveen Singh Chadha
Arrow right icon
View More author details
Toc

3. Real-World Deep Learning: Evaluating the Bitcoin Model

Activity 3.01: Optimizing a Deep Learning Model

Solution:

  1. 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:

    Figure 3.20: Screenshot of a TensorBoard showing SCALARS page

  2. 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:

    Figure 3.21: Jupyter Notebook

    Open the URL that appears in a different browser window.

  3. 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.
  4. Set the seed to avoid randomness:
    np.random.seed(0)

    We will load the train and test data like we did...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image