Giter Club home page Giter Club logo

indmitds / disaster-response-webapplication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harshdarji23/disaster-response-webapplication

0.0 0.0 0.0 4.83 MB

Built a disaster response Web Application that takes input messages during calamity and direct to a particular alleviation organization that can give speedy help

Home Page: https://towardsdatascience.com/building-a-disaster-response-web-application-4066e6f90072

Python 5.26% HTML 1.43% Jupyter Notebook 93.31%

disaster-response-webapplication's Introduction

Disaster-Response-WebApplication

Project Overview

In this project I have built up a Web application which takes input messages during calamity and direct to a particular alleviation organization that can give speedy help
The application utilizes a ML model to sort any new messages got, and the store additionally contains the code used to train the model and to set up any new datasets for model training purposes. Read the entire blog at: https://towardsdatascience.com/building-a-disaster-response-web-application-4066e6f90072
Data Source: Figure Eight

File Description

  • Workspace: This is the main folder containing all the sub folders and files.
  • Data: This folder contains all the .csv files, .db file and .py file
  • Data-> disaster_categories.csv/disaster_messages.csv: These files inside the data folder contains messages, their genres and different categories they beong to.
  • Data-> process_data.py: This code takes as its input csv files containing message data and message categories (labels), and creates an SQLite database containing a merged and cleaned version of this data
  • Data-> disaster.db: This file is the database which is used to fetch data whenever needed
  • Models: This folder contains the ML pipeline and the pickle object
  • Models-> train_classifier.py: This code takes the SQLite database produced by process_data.py as an input and uses the data contained within it to train and tune a ML model for categorizing messages. The output is a pickle file containing the fitted model. Test evaluation metrics are also printed as part of the training process.
  • Models->classifier.pkl: This file contains the fitted model so we do not need to fit the model again
  • App: This folder contains run.py and templates which are used to run the main web application

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/ or localhost:3001

Web Application Demo:

This image shows how the message "Due to heavy rains, there's flood in Mumbai. Help neeeded" is classified into different categories like Related, aid related, search and rescue..

disaster-response-webapplication's People

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.