Skip to content

FelixStaff/ClimatePrediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClimatePrediction

A model that can predict the weather from each street in the metropolitan zone of Monterrey

Load the model

First, you need to have the ModelApodaca4.2.pt in the path Model/ModelApodaca4.2.pt And have the architecture of the Net, then specify the arguments and make the comand

model = Net(arguments**)
model.load_state_dict(torch.load("Model/ModelApodaca4.2.pt))

And the model will be charged

The input format is

['CO', 'DV', 'HR', 'NO', 'NO2', 'NOx', 'O3', 'PB', 'PM10', 'PM2.5', 'PP', 'RS', 'SO2', 'TMP', 'VV']

These are the rows for the input, so you enter the input

input = ['CO', 'DV', 'HR', 'NO', 'NO2', 'NOx', 'O3', 'PB', 'PM10', 'PM2.5', 'PP',
       'RS', 'SO2', 'TMP', 'VV']
       
pred = model(input, future= 100)

The future is the petition to have the next N hours of weather for the same input variables

WhatsApp Image 2022-09-25 at 12 26 15 PM

This figure shows the plot of the prediction that the model made with the data, showing the real data and what the model get.

This model is capable of accurately predicting more than 10 days of climatic changes, but losing data security after its 10-day limit.

About

A model that can predict the weather from each street in the metropolitan zone of Monterrey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors