Stock-price-prediction-model --
🤓Stock price prediction model using LSTM (Long short-term memory)
LSTMs are very powerful in sequence prediction problems because, they can store the past information, which is important in our case. After all, the previous price of a stock is important in predicting its future price.
✔ Import Libraries --
- import math
- import pandas_datareader as web
- import numpy as np
- import pandas as pd
- from sklearn.preprocessing import MinMaxScaler
- from tensorflow.keras.models import Sequential
- from tensorflow.keras.layers import Dense, LSTM
- import matplotlib.pyplot as plt
✔ Tasks performed --
-- Getting the stock quote
-- EDA (Exploratory Data Analysis)
-- Visualizing the data
-- Splitting the data from train-test
-- Implementing the model
-- Checking the last closing price with your predicted values.