Coder Social home page Coder Social logo

neemiasbsilva / lstm-pollution-china Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 379 KB

Using long short term memory networks to analysis the pollution of Beijing, China.

Jupyter Notebook 99.55% Python 0.43% Shell 0.02%
lstm-neural-networks machine-learning long-short-term-memory pollution-prediction china-region model pandas-dataframe deep-learning china forecast

lstm-pollution-china's Introduction

Using Long Short Term Memory Networks (LSTM) to Evaluate the Pollution of Beijing, China.

Keras Documentation

About LSTM

LSTM are a special kind of Recurrent Neural Network, capable of learning long-term dependencies. They were introduced by Hochreiter & Schmidhuber (1997), and were refined and popularized by many people in following works [Sundermeyer et al. (2012), Zhou, Chunting, et al. (2015), Gensler, André, et al. (2016)].

All recurrent neural networks have the form of a chain of repeating modules of neural network. LSTM also have this chain like structure, bellow follow the module in an LSTM.

The repeating module in an LSTM containg four interacting layers. To know more about lstm neural networks, please click here.

Getting Started

Prerequisites

Before you install the packages, it's necessaryly some knowledgmentes:

  Have a good knowledgment of Deep Learning, specialy of LSTM layer, and very nice knowledgment of python too.

Install

Bellow, follow some of packages you have to be install for run this experiment:

  • The first step is create run virtual environment (this step is optional, but I recommend):
  python3 -m pip install --user virtualenv
  source .virtualenv/bin/activate
  • The second step is install Sklearn
  pip install -U scikit-learn
  • After install Sklearno, you need to install TensorFlow:
  pip install tensorflow
  • When TensorFlow installation has finished, please install the Keras library:
  pip install keras
  • And the last library was MatPlotLib for you plot some graphics to analisy the results:
  python -m pip install -U matplotlib

Run the Experiment

After the instalations, you can run now the experiment type the following command in your terminal:

  sh run.sh

Result

Bellow, follow the train process history used for build the model and also for verify the overfitting.

History evaluation for see if are overfitting during the training process or no. In this figure was used mean squared error (MSE) as metric of the loss (y-axis). The x-axis are the number of epochs that used for train the model.

Sincerely: Neemias B. da Silva

lstm-pollution-china's People

Contributors

neemiasbsilva avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anuragd3118

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.