A one-parameter model y^=wx (no intercept) is trained on six examples:
| xi | 1 | 2 | 3 | 4 | 5 | 6 |
|---|
| yi | 3 | 5 | 8 | 9 | 12 | 14 |
Training uses mini-batch gradient descent with a batch size of 3. For a mini-batch B containing m examples, the loss and its gradient are
JB(w)=m1∑i∈B(wxi−yi)2,dwdJB=m2∑i∈B(wxi−yi)xi
One epoch consists of two updates taken in order:
- update 1 uses the mini-batch {(1,3),(2,5),(3,8)};
- update 2 uses the mini-batch {(4,9),(5,12),(6,14)}, and its gradient is evaluated at the weight that update 1 has already produced — not at the starting weight.
Training starts at w=2 with learning rate η=0.02.
What is the value of w after one complete epoch?
Round your answer to 2 decimal places.