/Disaster-response-pipeline-project

Project done under the udacity's data science course

Primary LanguagePython

Disaster Response Pipeline Project

Project Motivation

Hi, Here I have applied skills I learned in Data Engineering Section to analyze disaster data from Figure Eight to build a model for an API that classifies disaster messages.

File Description

.
├── app     
│   ├── run.py                           # Flask file that runs app
│   └── templates   
│       ├── go.html                      # Classification result page of web app
│       └── master.html                  # Main page of webapp    
├── data                   
│   ├── disaster_categories.csv          # Dataset including all categories  
│   ├── disaster_messages.csv            # Dataset including all messages
│   └── process_data.py                  # Data cleaning
├── models
│   └── train_classifier.py              # Train ML model           
└── README.md

Instructions: (Run run.py directly if DisasterResponse.db and claasifier.pkl already exist.)

  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/

ScreenShot

Example

Type in: We have a lot of problem at Delma 75 Avenue Albert Jode, those people need water and food.

Example