01. Python3.6(Python3)
02. Virtualenv
03. Requirements that are in requirements.txt
If you are using a ssh key for GitHub, please use flowing git command to clone the project.
git clone [email protected]:snandasena/disaster-response-pipeline.git
Otherwise use HTTPS git method to clone the git repositories.
git clone https://github.com/snandasena/disaster-response-pipeline.git
Here I assumed you are in the project root directory and here "." is represent the current directory.
virtualenv -p python3.6 .
Then activate the python virtual environment
source bin/active
chmod 755 run.sh
./run.sh
#!/bin/bash
# to install required python dependencies
python -m pip install -r requirements.txt
# to install nltk packages
python -m nltk.downloader wordnet
python -m nltk.downloader stopwords
python -m nltk.downloader punkt
# to run ETL pipeline
rm -rf ./data/DisasterResponse.db >/dev/null
#
python process_data.py ./data/disaster_messages.csv ./data/disaster_categories.csv ./data/DisasterResponse.db
# to run ML pipeline
rm -rf ./models/classifier.pkl >/dev/null
python train_classifier.py ./data/DisasterResponse.db ./models/classifier.pkl
# run the application
# shellcheck disable=SC2164
python run.py ./data/DisasterResponse.db ./models/classifier.pkl
From:
model = build_model()
To:
model = build_model(enable_param_tuning=True)
After ETL and ML pipeline completion, the app will be started automatically.
Then go to web browser and hit the this url http://localhost:3001/
.
Licensing, Authors, Acknowledgements
Big thank you to Udacity for providing the template code for this project. Also want to thank Figure Eight for providing the data.