Giter Site home page Giter Site logo

disaster-response-pipeline's Introduction

Disaster Response Pipeline

Introduction

This project is for categorizing 36 disaster classes(e.g. flood, strom, shelter, ...) based on the messages delivered during disasters. The training set of data is provided by Figure Eight to build a model for an API that classifies disaster messages. The project has been developed as part of Udacity Nano degree for data scientist.

The project contains:

  1. ETL pipeline to wrangle data and load in SQLlight database.
  2. Machine Learning pipeline to train classifier and optimize the classifier hyperparameters using GridSearchCV
  3. Web application to visualize train data and show result of trained classifier

File description

data:

  • data/proces_data.py: python script to clean data to save in SQLlite database
  • data/disaster_categories.csv and data/disaster_messages.csv: csv files with train data

model:

  • model/train_classifier.py: python script to train classifier using machine learning algorithms and sklearn pipeline

app:

  • app/run.py: python script contains api with data visualization using plotly
  • templates/: directory that contains html for each api

Usage

python data/process_data.py data/disaster_messages.csv data/disaster_categories.csv data/DisasterResponse.db

  • Read the data from csv files to run ETL pipeline to create DisasterResponse.db SQLlite database

python models/train_classifier.py data/DisasterResponse.db models/classifier.pkl

  • Read the data from the database to train classifier

python app/run.py

  • Run web application

Webapp description

  1. Three types of messages' genres bar chart

  2. The distribution of message categories pie chart

  3. The result of message search screenshot

disaster-response-pipeline's People

Contributors

goodbsw avatar

Stargazers

 avatar

Watchers

 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.