A simple web app which visualize and classifies disaster response messages using machine learning algorithms applied on real messages datasets.
-
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
- To run ETL pipeline that cleans data and stores in database
-
Run the following command in the app's directory to run the web app.
python run.py
-
Go to http://0.0.0.0:3001/
The goal here is building a model based on a data containing thousands of messages, provided by Figure Eight, that were sent during natural disasters. These messages were sent either via social media or directly to disaster response organizations. I have built an ETL pipeline that processes message and category data from CSV files, and load them into a SQLite database, which the machine learning pipeline will then read from to create and save a multi-output supervised learning model. The result will be demonstrated as a visualization and an interactive classification of messages through a web app.
There are 3 folders: . app containing run.py and html templates . data containing csv files and process_data.py . models containing train_classifier.py
Must give credit to Figure Eight for the data and Udacity for giving the necessary trainings. Otherwise, feel free to use the app.