This project aims to predict flood occurrences based on various weather parameters. It includes data fetching, model training, and prediction scripts.
.DS_Store
βββ data/
β βββ FloodPrediction.csv
βββ models/
β βββ flood_prediction_model.pkl
βββ notebooks/
β βββ flood_prediction.ipynb
βββ scripts/
β βββ data_fetcher.py
β βββ run_pipeline.py
βββ requirement.txt
- π data/ - Contains the dataset used for training and prediction.
- π models/ - Stores the trained machine learning model.
- π notebooks/ - Includes Jupyter notebooks for data exploration and model training.
- π scripts/ - Houses Python scripts for data fetching and running the prediction pipeline.
- π requirement.txt - Lists the dependencies required for the project.
git clone https://github.com/anujjainbatu/automated-flood-prediction-ml.git
python3 -m venv venv
source venv/bin/activate # For macOS/Linux
venv\Scripts\activate # For Windows
pip install -r requirement.txt
To fetch the latest weather data and update the database, run:
python scripts/data_fetcher.py
To execute the entire prediction pipeline, including data fetching, model prediction, and saving predictions to the database, run:
python scripts/run_pipeline.py
To automate the prediction pipeline with a cron job, add the following line to your crontab (e.g., to run the script every day at midnight):
0 0 * * * /usr/bin/python3 /path/to/your/workspace/scripts/run_pipeline.py
This project is licensed under the MIT License. See the LICENSE file for details.