Spaces:
Running
Running
Upload 6 files
Browse files- README.md +37 -6
- requirements.txt +6 -0
- rf_energy_model.pkl +3 -0
- threshold_model_83.pkl +3 -0
- threshold_model_90.pkl +3 -0
- xgboost_energy_model.pkl +3 -0
README.md
CHANGED
@@ -1,12 +1,43 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Energy ML Prediction System
|
3 |
+
emoji: ⚡
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.0.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
license: mit
|
11 |
---
|
12 |
|
13 |
+
# Energy ML Prediction System
|
14 |
+
|
15 |
+
AI-powered energy consumption prediction and threshold exceedance detection.
|
16 |
+
|
17 |
+
## Models
|
18 |
+
|
19 |
+
- **Threshold Detection**: Random Forest classifier (AUC = 0.94)
|
20 |
+
- **Energy Prediction**: Random Forest & XGBoost regressors
|
21 |
+
- **Performance**: R² up to 0.72, MAE as low as 0.53 MWh
|
22 |
+
|
23 |
+
## Features
|
24 |
+
|
25 |
+
- Real-time predictions via simple JSON interface
|
26 |
+
- Multiple model comparison (RF vs XGBoost)
|
27 |
+
- Threshold exceedance probability (8.3 and 9.0 MWh)
|
28 |
+
- Secure access with authentication
|
29 |
+
|
30 |
+
## Usage
|
31 |
+
|
32 |
+
1. Select your model
|
33 |
+
2. Input JSON configuration
|
34 |
+
3. Get instant predictions
|
35 |
+
|
36 |
+
## Authentication
|
37 |
+
|
38 |
+
Login required for access.
|
39 |
+
- Username: admin
|
40 |
+
- Password: energy123
|
41 |
+
|
42 |
+
---
|
43 |
+
*Built with Gradio • Powered by scikit-learn & XGBoost*
|
requirements.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
gradio>=4.0.0
|
2 |
+
pandas>=1.5.0
|
3 |
+
numpy>=1.24.0
|
4 |
+
scikit-learn>=1.3.0
|
5 |
+
xgboost>=1.7.0
|
6 |
+
pickle5
|
rf_energy_model.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e2ec875cf72dbe7ce9775021c58584c7645e4af27b6119c7995b574b5467de69
|
3 |
+
size 6090098
|
threshold_model_83.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:62036615efd1261946b92e92a955683baa9c972d307d56a8f3ae42fb05a906ae
|
3 |
+
size 1228559
|
threshold_model_90.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc07344432461c695611d8ee7248123d316d9fa16d4e832c256aecb6f66289e8
|
3 |
+
size 474338
|
xgboost_energy_model.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8a9e6a2538ff4a27975df748a46dc4336855490f973f596162ff0d6b7c8a643
|
3 |
+
size 353424
|