Giter Club home page Giter Club logo

disaster-response's Introduction

Disaster Response

Introduction:

In this project I analyzed disaster data from Figure Eight in order to build a model for an API that classifies disaster messages.

The data set contains real messages that were sent during disaster events. The goal is to create a machine learning pipeline to categorize these events so that you can send the messages to an appropriate disaster relief agency. The project also includes a web app where an emergency worker can input a new message and get classification results in several categories.

Table of Contents:

This project contains the following folders:

  1. data
  • Disaster_categories.csv: This file includes categories of messages received.
  • Disaster_messages.csv: This file includes messages received.
  • Process_data.py: This python file includes the ETL pipeline to extract, wrangle, clean and save data.
  • DisasterResponse.db: This is the SQL database that contains the processed messages and categories data.
  1. models
  • train_classifier.py`: This includes the machine learning pipeline in order to train data and save the classifier.

  • classifier.pkl: Output of the train_classifier.py. This is the trained classifier.

  1. app
  • Run.py: Contains code for web application.
  • Templates contain files for web application.
  1. ‘ETL Pipeline Preparation Python Notebook`: This python notebook contains the ETL pipeline.

  2. ML Pipeline Preparation: This python notebook contains the ML pipeline.

  3. Visualization pdf: This is a screenshot of the visualizations using data from SQLite database.

Summary of Results of Analysis:

Created ETL pipeline to extract, transform and load the disaster data provided by Figure Eight. Created a machine learning pipeline to train the classifier. Developed a web application so that the emergency worker can input the message and get the message classification result.

Software:

This project uses the following software and Python libraries:

Beyond the Anaconda distribution of Python, the following packages need to be installed for nltk:

  • Punkt
  • Wordnet
  • stopwords

Instructions:

  1. Run the following commands in the project's root directory to set up your database and model.

    • To run ETL pipeline that cleans data and stores in database python data/process_data.py data/disaster_messages.csv data/disaster_categories.csv data/DisasterResponse.db
    • To run ML pipeline that trains classifier and saves python models/train_classifier.py data/DisasterResponse.db models/classifier.pkl
  2. Run the following command in the app's directory to run your web app. python run.py

  3. Go to http://0.0.0.0:3001/

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.