We will use the following data in this exercise:
Date | Open | High | Low | Close | Adj Close | Volume (M) |
---|---|---|---|---|---|---|
2015-01-02 | 35.2 | 35.3 | 34.4 | 34.8 | 30.8 | 9.7 |
2015-01-05 | 34.9 | 35.2 | 34.0 | 34.3 | 30.4 | 16.2 |
2015-01-06 | 34.4 | 35.2 | 34.0 | 34.8 | 30.8 | 17.7 |
2015-01-07 | 35.2 | 35.9 | 35.0 | 35.8 | 31.7 | 19.3 |
Consider a single perceptron with the following properties:
Calculate either by hand or using python:
Consider a two-layer fully connected network the same prediction task where the first layer consists of two perceptrons of which the output feeds into one single perceptron in the second layer. Initialize the four weights in the first layer to (0.1, 0.01, 0.2, 0.02) and 2 weights in the second layer to (0.1, 0.2).