Git Product home page Git Product logo

windforce's Introduction

WindForce

Powered by bigdata, this code is for estimation, prediction and visualization of air pollution.

Pre-request

GDAL libDAI

Install

mkdir build
cd build
cmake ..
make

Test with synthetic data

Consider a Ising model with Mdim x Ndim grids. We want to estimate the model parameters from partial observations. To test the algorithm, three programs, namely the GB, BP and II, are used.

GB is used to generate synthetic data, the parameters are set in the code and will be stored in "parameters.txt". First, GP will generate the full state vector using parameters provides. Then we may want to cover some of the grids (missing data) and test the algorithm. The generated data will be stored in the "data" folder.

BP is used to fill the missing data using parameters listed in "result.txt". Note that initially these parameters are guessed. But after many interations of BP+II, we hope to learn the true parameters used to generate the data. The recovered data will be stored in the "evidence" folder. For unknown grids, we approximate their s0 using nearest neighbour.

II is used to solve the inverse problem. Note that II only estimate s0 on the known site. The unknown site will be printed as 0, but actually it is given by the approximation we just described. Currently we don't need to change this file.

Notes:

  1. In both "data" and "evidence" folder, make sure the "filelist.txt" contains all the *.tif files.
  2. There are two places need to be modified in generate_data.cpp and one plance to be modified in belief_propagation.cpp. These places are marked as "modify".

Contact:

Yucheng Hu Zhou Pei-yuan Center for Applied Mathematics, Tsinghua University, Beijing, China, 100084. [email protected]

windforce's People

Contributors

hydrays avatar

Watchers

James Cloos avatar  avatar

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.