Predicting Bitcoin prices using LSTM model

We have learned that LSTM models are widely used for sequential datasets, that is, datasets in which order matters. In this section, we will learn how we can use LSTM networks for time series analysis. We will learn how to predict Bitcoin prices using an LSTM network.

First, we import the required libraries as follows:

import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler

import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('ggplot')

import tensorflow as tf
tf.logging.set_verbosity(tf.logging.ERROR)

import warnings
warnings.filterwarnings('ignore')
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset