Code Monkey home page Code Monkey logo

dsnd-term2-disaster-response-pipeline's Introduction

Disaster Response Pipeline Project

Project Motivation

This main goal of this project is to apply data engineering skills to build a model for an application program interface (API) that classifies disaster messages based on data from Figure Eight. The model is used to categorize disaster events,so messages can be sent to an appropriate disaster relief agency. Anybody can get classification result by inputing a message via interface provided by the web app; additionally, the web app includes some visulization for contextual purposes.

Dependencies

  • Pandas
  • NumPy
  • Scikit-Learn
  • NLTK
  • SQLalchemy
  • Flask
  • Plotly

File Descriptions

. 
├── README.md
├── app
│   ├── run.py
│   └── templates 
│       ├── go.html
│       └── master.html
├── data
│   ├── DisasterResponse.db
│   ├── YourDatabaseName.db
│   ├── disaster_categories.csv
│   ├── disaster_messages.csv
│   └── process_data.py
├── models
│   ├── classifier.pkl
│   └── train_classifier.py
└── notebook
    ├── ETL Pipeline Preparation.ipynb
    └── ML Pipeline Preparation.ipynb

Note:

  • YourDatabaseName.db is not used and should be ignored.
  • process_data.py contains the data pipeline, which is the Extract, Transform, and Load process. In this file, the dataset is being read, cleaned, and stored it in a SQLite database.
  • train_classifier.py is where the NLP and Machine Learning pipelines are implemented. The NLP pipeline involves the process of tokenizing, stemming, lemmatization, and feature extraction, while the Machine Learning pipeline includes train test splitting, training, evaluation, and optimization.

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/

dsnd-term2-disaster-response-pipeline's People

Contributors

grilhami avatar

Watchers

 avatar  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.