Skip to content

CodeOfGod/Forecasting-on-Air-pollution-with-RNN-LSTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIR POLLUTION FORECASTING USING LSTM


Steps followed:

  1. Data preparation
  2. Data visualization
  3. LSTM data preparation
  4. Fit model along with regularization term
  5. Evaluate model

Data preparation:

  • Replace NA values
  • Parse date-time into pandas dataframe index
  • Specified clear names for each columns

Data visualization

  • Used matplotlib to plot

Air pollution dataset

LSTM data preparation

  • Normalized data
  • Transformed dataset into supervised learning problem

Model Fitting

  • Split data into train and test
  • Split into i/p and o/p
  • Reshape into 3D
  • Define a 50 neuron followed by 1 nueron LSTM
  • Add dropout at 30%
  • Plot history of training and testing loss

Train and Test loss

Evaluate model

  • Make prediction
  • Invert scalings
  • Calculate RMSE

About

Time Series Forecasting using LSTM in Keras.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages