To compute the trends, the local average or a moving average of the temperature, here is the steps:
1.Initialize
gives which is exponentially weighted average
average over day’s temperature, so
Notice:
Notice:
Exponentially weighted averages will turn out to be a key component of several optimization algorithms that you used to train your neural networks.
gives following:
Let’s and write few equations:
So,
☝️ Exponentially decaying function
How do you implement below?
In practice:
Repeat {
get next
}