Giter Site home page Giter Site logo

disaster_response_pipeline's Introduction

Disaster response pipeline

Project motivation

The current project is done in the framework of the Data Scientist Nanodegree at Udacity and includes two main goals:

  • to develop a pipeline that handles disaster data provided by Figure Eight and builds multioutput classifier model predicting the category of a disaster message;
  • to make an application that allows an user to predict a category for any new message.

Description of files

  • ETL Pipeline Preparation notebook contains all the steps needed for data cleaning, handling and saving the final dataset into SQL database.
  • ML Pipeline Preparation notebook contains all my experiments with different classifiers
  • The folder data includes disaster messages (disaster_messages.scv), categories for these messages (disaster_categories.csv), the final database with cleaned and preprocessed dataset (DisasterResponse.db), and the script cleaning, merging, and saving data (process_data.py) (the script is made on the base of ETL Pipeline Preparation notebook)
  • The folder models includes the customer transformer calculating some statistics for an input text (custom_transformers.py) and the script with the pipeline for the final model (train_classifier.py).
  • The folder app includes templates and script for launching the application.

How to run the pipelines and the app

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

  2. To run ML pipeline that trains classifier and saves: python models/train_classifier.py data/DisasterResponse.db models/classifier.pkl

  3. Run the following command in the app's directory to run your web app: python run.py

  4. Go to http://0.0.0.0:3001/

Libraries

To successfully reproduce my script on your machine, the following packages should be installed: pandas, nltk, numpy, sklearn, json, plotly, flask, sqlalchemy

disaster_response_pipeline's People

Contributors

voskresenskiy avatar

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.