π² Algerian Forest Fire Dataset β Regression Project
π Overview
This project predicts the Fire Weather Index (FWI) using multiple environmental features such as temperature, humidity, wind speed, and more.
It uses Ridge Regression for predictive modeling and a Flask web app for interactive user input and result visualization.
π§ Problem Statement
Wildfires can cause massive environmental and economic damage.
The goal of this project is to predict the FWI β a metric representing the potential for forest fire β based on meteorological data from the Algerian Forest Fire dataset.
βοΈ Tech Stack
Python 3
Flask (for web framework)
Scikit-learn (for regression and scaling)
HTML/CSS (for frontend interface)
Pickle (for model serialization)
NumPy & Pandas (for data processing)
π§© Project Structure
π Algerian-Forest-Fire-Dataset-Regression
β
βββ app.py # Flask application
βββ models/
β βββ ridge.pkl # Trained Ridge Regression model
β βββ scaler.pkl # StandardScaler object
β
βββ templates/
β βββ home.html # Web form for user input
β βββ index.html # Landing page
β
βββ static/ # (optional) CSS/JS files
β
βββ README.md # Project documentation
βββ requirements.txt # Python dependencies
π How to Run Locally
1οΈβ£ Clone the repository
git clone
github.com
cd ALgerian-Forest-Fire-Dataset-Regression
2οΈβ£ Create and activate virtual environment
python -m venv venv
venv\Scripts\activate # (Windows)
# or
source venv/bin/activate # (Mac/Linux)
3οΈβ£ Install dependencies
pip install -r requirements.txt
4οΈβ£ Run the Flask app
python app.py
Then open your browser and go to:
π
127.0.0.1
π§ͺ Model Details
Algorithm: Ridge Regression
Evaluation Metrics: RΒ² Score, MAE, MSE
Preprocessing: Standard Scaling applied to all numeric features
πΌοΈ Web App Interface
The app provides a sim β¦