HW1
Due on Mar 2 (30 points)
(10 points) Try to build a linear regression model to predict the stock price of MSFT from the prices of several other stocks. You can download the Jupyter notebook of the question from here. Note that we are not predicting future stock price of MSFT. But just “predicting” the current stock price of MSFT from the current prices of other stocks.
Let's repeat the prediction in the last question using a neural networks
(2 points) Split the MSFT stock price data into training (9/1/2021-11/30/2021), validation (12/1/2021-12/31/2021), and test (1/1/2022-1/31/2022) datasets.
(10 points) Estimate the MSFT stock price again with a fully connected neural network with 5 hidden layers. Each hidden layers have 20 neurons. And use ReLU as activation function.
(4 point) Try different optimization algorithms, SGD, Momentum, Adam. Plot the training loss/validation loss VS epoch.
(4 points) Set learning rate schedulers using OneCycleLR, CyclicLR, and ReduceLROnPlateau. PyTorch offers learning rate schedulers to change the learning rate over time. Check this tutorial for more instruction. Observe any difference in your training
|