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

2. Real-World Deep Learning: Predicting the Price of Bitcoin

Activity 2.01: Assembling a Deep Learning System

Solution:

We will continue to use Jupyter Notebooks and the data prepared in previous exercises of chapter 2 (data/train_dataset.csv), as well as the model that we stored locally (bitcoin_ lstm_v0.h5):

  1. Import the libraries required to load and train the deep learning model:
    import numpy as np
    import pandas as pd
    import matplotlib.pyplot as plt
    %matplotlib inline
    from tensorflow.keras.models import load_model
    plt.style.use('seaborn-white')

    Note

    The close_point_relative_normalization variable will be used to train our LSTM model.

    We will start by loading the dataset we prepared during our previous activities. We'll use pandas to load that dataset into memory.

  2. Load the training dataset into memory using pandas, as follows:
    train = pd.read_csv('data/train_dataset.csv')
  3. Now, quickly inspect the dataset by executing the following command...
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