ke7c2mi
ke7c2mi
DIIDevHeads IoT Integration Server
Created by Renuel Roberts on 12/18/2024 in #📡-edge-networking
Resolving Unrealistic Weather Predictions in MicroPython Linear Regression Model on Raspberry Pi Pic
How is this supposed to work? It looks like it fetches a single point of data and simply says the next hours temperature is: coef_temp * temp + coef_humidity * humidity + intercept Which seems nonsensicle to me. Because coef humidity is negative, if you have a small temperature and high humidity the next step can easily be negative. Make some plots of what that function does (you can do a 2d plot for a set of inputs) - the visualisation should make it clear its not right. Unless I misread the code there is no linear regression here If you derived those coefficients from a linear regression, it is over fitted and doesnt have enough factors to be useful. One of the primary drivers of temperature is time of day for example
13 replies