Giter VIP home page Giter VIP logo

disaster_response_project's Introduction

Disaster Response Project

A project of the Udacity Data Science Nanodegree

Overview

The goal of the project was to implement a fully functional web app in which a user can input a message related to a catastrophic disaster (e.g. earthquake, flood, fire,...) and would receive a list of potential categories which describe the content of the message. The classification output is based on a machine learning model trained with social media messages using natural language processing (NLP).

The project covers the fundamental steps of a machine learning project:

  • Loading raw data
  • Cleaning data
  • Storing cleaned data
  • Training & evaluating a machine learning model
  • Storing the ML-model
  • Building a web app to make use of the ML-model and providing a service to users

Project Structure

The project structure is made up of three main folders:

  • app: Contains code related to the web app
  • data: Contains the raw data files (.csv) and a script for data cleaning
  • model: Contains a script to train and evaluate the machine learning model

How to Run

To get started with the project run the following commands from the root directory:

  1. python3 ./data/process_data.py ./data/disaster_messages.csv ./data/disaster_categories.csv ./data/DisasterResponse.db
  2. python3 ./models/train_classifier.py ./data/DisasterResponse.db ./models/disaster_response_model.pkl
  3. python3 ./app/run.py

Go to http://0.0.0.0:3001

Notes: You need to be within a Python virtual environment.

Screenshots

message_input graph_1 graph_2 graph_3 classification_output

Acknowledgement

Special thanks to Figure Eight (acquired by Appen) for providing the curated dataset.

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.