This code file gives the prediction of the FWI(Fire Weather Index). Model is trained on the Algerian Forest Fire dataset.
# ๐ฒ Forest Fire Prediction
This project predicts the likelihood of forest fires using machine learning models.
It takes input features (like temperature, humidity, wind, etc.) and outputs whether a fire is likely to occur.
The project also includes a simple web interface built with **Flask**.
---
## ๐ Features
- Pre-trained ML model for fire prediction.
- Flask web app with user-friendly forms.
- Input standardization before prediction.
- HTML templates (`home.html`, `index.html`) for UI.
- Modular project structure.
---
## ๐ Project Structure
```
Algerian_Forest_Fire/
โ-- models/ # Contains .pkl model files
โ-- templates/ # HTML files (home.html, index.html)
โ-- static/ # (optional) CSS/JS files
โ-- app.py # Main Flask application
โ-- requirements.txt # Dependencies
โ-- README.md # Project documentation
```
---
## ๐ Installation & Setup
### 1. Clone the repository
```bash
git clone
github.com
cd TestForestFire
````
### 2. Create and activate virtual environment (recommended)
```bash
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
```
### 3. Install dependencies
```bash
pip install -r requirements.txt
```
### 4. Run the Flask app
```bash
python app.py
```
Now open your browser and visit **
127.0.0.1
---
## ๐ฆ Requirements
* Python 3.8+
* Flask
* Scikit-learn
* Pandas
* Numpy
(Install all via `requirements.txt`)
---
## ๐ฎ Future Improvements
* Deploy on **Render/Heroku/Streamlit** for public access.
* Add **real-time weather API integration**.
* Improve UI design.
---
## ๐ค Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what youโd like to change.
---
## ๐ License
This project is licensed under the MIT License.
---