Upload 3 files
Browse files- README.md +25 -3
- requirements.txt +1 -0
- trustedair_dust_index.py +10 -0
README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
language: en
|
| 4 |
+
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- air-quality
|
| 7 |
+
- trustedair
|
| 8 |
+
- iot
|
| 9 |
+
- environmental-health
|
| 10 |
+
- placeholder-model
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# TrustedAir Dust Index Predictor
|
| 14 |
+
|
| 15 |
+
This is a placeholder model created by TrustedAir Labs to simulate air quality index scoring based on particulate matter readings (PM2.5).
|
| 16 |
+
|
| 17 |
+
## Example Usage
|
| 18 |
+
```python
|
| 19 |
+
from trustedair_dust_index import predict_dust_index
|
| 20 |
+
predict_dust_index(pm25=42)
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Intended Use
|
| 24 |
+
This model is for demonstration purposes only and is not a certified air quality metric or diagnostic tool.
|
| 25 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
numpty
|
trustedair_dust_index.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
def predict_dust_index(pm25):
|
| 3 |
+
if pm25 < 12:
|
| 4 |
+
return "Good"
|
| 5 |
+
elif pm25 < 35.5:
|
| 6 |
+
return "Moderate"
|
| 7 |
+
elif pm25 < 55.5:
|
| 8 |
+
return "Unhealthy for Sensitive Groups"
|
| 9 |
+
else:
|
| 10 |
+
return "Unhealthy"
|