Stock Price Predication
Stock Price Predication
Authors:
DEFINITION
Goals
1.3 Metrics
For this project measure of performance will be using the
Mean Squared Error (MSE) and Root Mean Squared Error
(RMSE) calculated as the difference between predicted and
actual values of the target stock at adjusted close price and
the delta between the performance of the benchmark
model (Linear Regression) and our primary model (Deep
Learning).
Chapter 2.
ANALYSIS
• Input Parameters
• Preprocessing and Normalization (see Data Preprocessing
Section)
• Training Parameters
METHODOLOGY
• Request the data from the Google Finance Python API and
save it in google.csv file in the following format.
x_train (2155, 1)
y_train (2155, 1)
x_test (990, 1)
y_test (990, 1)
y_test (446,)
3.2 Implementation
Benchmark model :
linear_model10 library.
Step 4: Finally calculate the test score and plot the results
of benchmark model.
Improved LSTM model :
Step 1 : Split into train and test model :
Note : The same set of training and testing data is used for
improved LSTM as is used with basic LSTM.
datasets.
3.3 Refinement
● Added verbose = 2
0.00093063 MSE.
RESULT
significantly.
(0.28519784 RMSE)
Fig: Plot of Linear Regression Model
memory model:
RMSE)
● Test Score: 0.01153170 MSE (0.10738577
RMSE)
Fig: Plot of basic Long-Short Term Memory
model
RMSE)
RMSE)
Fig: Plot of Improved Long-Short Term
Memory Model
Robustness Check :
4.2 Justification
Range
Memory Model
5.2 Reflection
● Set Up Infrastructure
○ iPython Notebook
○ Incorporate required Libraries (Keras, Tensor flow,
● Prepare Dataset
Dataframe
Learn
○ Calibrate parameters
:)
Improvement
course.
And as there is scope of improvement in each
things are :
3 Alphabet Inc
6 Google.csv
7 Matplotlib
10 Linear Model