Update README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
title: RainfallPredictionClassification
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
app_port: 8501
|
| 8 |
tags:
|
|
@@ -12,9 +12,29 @@ short_description: App that predicts rainfall probability (0–1)
|
|
| 12 |
license: mit
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: RainfallPredictionClassification
|
| 3 |
+
emoji: 🌧️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
app_port: 8501
|
| 8 |
tags:
|
|
|
|
| 12 |
license: mit
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# 🌧️ Rainfall Probability Predictor (LogReg)
|
| 16 |
|
| 17 |
+
This Streamlit app predicts the **probability of rainfall (0–1)** from daily weather features using a trained **Logistic Regression** model.
|
| 18 |
|
| 19 |
+
## What the app does
|
| 20 |
+
- Takes weather inputs (temperature, humidity, wind, pressure, cloud cover, sunshine, day of year)
|
| 21 |
+
- Creates a few engineered features (e.g., temperature range, humidity gap, seasonal sin/cos)
|
| 22 |
+
- Outputs a rainfall probability for **ROC-AUC style** prediction tasks
|
| 23 |
+
|
| 24 |
+
## Files required
|
| 25 |
+
Place these files in the repo root (same folder as `app.py`):
|
| 26 |
+
- `logistic_regression_model.pkl`
|
| 27 |
+
- `feature_names.pkl`
|
| 28 |
+
- `app.py`
|
| 29 |
+
- `requirements.txt`
|
| 30 |
+
|
| 31 |
+
## How to run locally
|
| 32 |
+
```bash
|
| 33 |
+
pip install -r requirements.txt
|
| 34 |
+
streamlit run app.py
|
| 35 |
+
Notes
|
| 36 |
+
The model expects the same feature order used in training.
|
| 37 |
+
|
| 38 |
+
feature_names.pkl is used to enforce the correct column order.
|
| 39 |
+
|
| 40 |
+
The app outputs probabilities, not hard class labels.
|