A didactic approach to the machine learning application to weather forecast