Giter VIP home page Giter VIP logo

disasterresponsepipeline's Introduction

Disaster Response Pipeline Project

Table of Contents

  1. Description
  2. Getting Started
    1. Dependencies
    2. Installing
    3. Executing Program
    4. Additional Material
  3. Authors
  4. License
  5. Acknowledgement
  6. Screenshots

Description

This Project is part of Data Science Nanodegree Program by Udacity using data provided by Figure Eight. The dataset contains pre-labelled tweet and messages from real-world disasters. The purpose of the project is to build a pipeline using Natural Language Processing tools that categorize the messages. The project has three components:

  1. Create an ETL Pipeline to extract data from source, clean data, complete other necessary data processing steps, and save the cleaned dataframe in sqlite databse.
  2. Create a Machine Learning Pipeline to train a model that will classify messages into given categories.
  3. Deploy the model to a Web App that will classify messages and display charts illustrating the dataset.

Getting Started

Dependencies

  • Python 3.5+
  • NumPy
  • SciPy
  • Pandas
  • Sciki-Learn
  • NLTK
  • SQLalchemy
  • Flask
  • Plotly

Installing

Clone this GIT repository:

git clone https://github.com/mknox0826/DisasterResponsePipeline.git

Executing Program:

  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/DisasterCleaned.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/

Additional Material

This assignment required students to first plan out the ETL and ML pipelines in a jupyter notebook. These two notebooks can be found in the "data" and "models" folders, respectively, to get a better understanding of each step in the process. These two notebooks informed the finalized code that is run in the python scripts inExecuting Program.

Authors

License

License: MIT

Acknowledgements

  • Udacity for providing such a complete Data Science Nanodegree Program
  • Figure Eight for providing messages dataset to train my model

Screenshots

  1. The main page displays graphs illustrating aspects of the training dataset provided by Figure 8. Main Page1 Main Page2
  2. This is an example of a message that can be classified by the model in the app.

Message

  1. This is an example of the classification results of the message above. Result

disasterresponsepipeline's People

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.