Coder Social home page Coder Social logo

jack-mcivor / air_quality Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimdowling/air_quality

0.0 0.0 0.0 6.48 MB

Air Quality Predictions for Cities using Weather

License: Apache License 2.0

Shell 0.36% Python 35.29% Jupyter Notebook 64.36%

air_quality's Introduction

Hopsworks Feature Store Advanced Tutorial - Air Quality Prediction

This is an advanced example of the Hopsworks Feature Store usage; you are tasked with predicting the Air Quality value (PM2.5) in Europe and USA using weather features and air quality features of the previous days.

The Feature Store is the essential part of AI infrastructure that helps organisations bring modern enterprise data to analytical and operational ML systems. It is the simplest most powerful way to get your models to production. From anywhere, to anywhere. You will load starting data into the feature store, create two feature groups from which we will make a feature view and training dataset, and train a model to predict fare amounts. Also, you will design a data-generating and Feature Store insertion pipeline, that will be running once a time using GitHub actions.

Streamlit app will be created so you would be able to try your model on different cities interactively.

This is a batch use case, it will give you a high-level view of how to use our python APIs and the UI to navigate the feature groups.

๐Ÿ—’๏ธ This whole tutorial is divided into 5 parts:

  1. Backfill Features to the Feature Store,
  2. Create a feature pipeline,
  3. Create Feature view & Training Datasets, train a model and upload it to the Model Registry,
  4. Deploy Streamlit app.

Prerequisites

To run this tutorial, you need an account on Hopsworks. You can create a new account at app.hopsworks.ai. In the notebook you will be prompted with a link to generate an API token to interact with your Hopsworks account.

Also, you are required to have some python library installed (See the requirements.txt inside this folder).

Data

The data for this project was collected using several different APIs. I used European Environmental Agency to collect data on European cities, and United States Environmental Protection Agency for American cities. Both are free and publicly available. They don't require registration or API keys. For the city of Seattle, I found and downloaded the data manually from here.

In feature pipeline you will use a free Open-Meteo API that covers many places in the world (works by coordinates).

The reason I use so many different APIs instead of just one Open-Meteo is that Open-Meteo only has data from 2022-07-29.

Anyway, as I said earlier, you don't need any registration or API keys to use any of the above APIs.

Streamlit run

To run streamlit app (after you have run all notebooks and already have required feature groups in Feature Store and model in Model Registry), simply type:

python -m streamlit run streamlit_app.py on Windows

or

python3 -m streamlit run streamlit_app.py on Unix

Streamlit usage examples

1.png 2.png 3.png 4.png 5.png 6.png

air_quality's People

Contributors

jimdowling 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.