Coder Social home page Coder Social logo

disaster-response-pipeline-project's Introduction

Table of Contents

  1. Installation
  2. Project Summary
  3. File Descriptions
  4. Instructions

Installation

There should be no necessary libraries to run the code here beyond the Anaconda distribution of Python. The code should run with no issues using Python versions 3.*.

Project Summary

A web app that classifies disaster messages into categories so that the right help will reach the people in need. An emergency worker can input a disaster message and get classification results in several categories. The web app also displays visualizations of the training data used.

File Descriptions

There are three folders - app, data and models.

The app folder contains run.py which runs the web app and a templates folder that contains the html files - go.html and master.html.

The data folder contains the raw csv files - disaster_categories.csv and disaster_messages.csv, and the process_data.py file, which loads, cleans and save the cleaned data to a sqlite database.

The models folder contains train_classifier.py, which builds, trains, evaluate and save the trained model as a pickle file.

Instructions

First, run the ETL pipeline to clean and store the data in the sqlite database via the command "python data/process_data.py data/disaster_messages.csv data/disaster_categories.csv data/DisasterResponse.db".

Next, run the ML pipeline that trains the classifier and saves it as a pickle file via the command "python models/train_classifier.py data/DisasterResponse.db models/classifier.pkl".

Run the web app via the command "python run.py".

disaster-response-pipeline-project's People

Contributors

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