cagriaslan / Disaster-Response-Pipeline-Project

Disaster Response Pipeline Project for Data Scientist Nanodegree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disaster Response Pipeline Project

Motivation

Motivation of this project is to classify text messages during a disaster to make them reachable by responsible parties.

Installation

Please use virtualenv and after you can install necessary libraries using requirements.txt

pip install -r requirements.txt

File Descriptions

    disaster_response_pipeline
      |-- app
            |-- templates
                    |-- go.html
                    |-- master.html
            |-- run.py
      |-- data
            |-- disaster_message.csv
            |-- disaster_categories.csv
            |-- DisasterResponse.db
            |-- process_data.py
      |-- models
            |-- classifier.pkl
            |-- train_classifier.py
      |-- requirements.txt
      |-- README
  • app folder containts relevant files for flask app.
  • data folder contains all the csv files and combined db file.
  • models folder includes the trained model and the classifier code.

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/

Acknowledgements and Licensing

This project is developed to fulfil the requirements of Udacity Data Scientist Nanodegree. You can use any part of the code in anywhere without any permission to do anything.

About

Disaster Response Pipeline Project for Data Scientist Nanodegree


Languages

Language:Python 74.6%Language:HTML 25.4%