Downloads · 30 days
0
sanjibkuanr/pm25-pollution-predictor
pm25-pollution-predictor is a machine learning model from sanjibkuanr. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project predicts the level of air pollution (PM2.5 concentration) using historical environmental data collected from Beijing between 2010 and 2014. It uses a machine learning model trained on weather and pollutio…
Downloads · 30 days
0
Access
Public
Updated Jul 23, 2025
Repo size
289 MB
Likes
0
Public
Click a slice to open those files.
.pkl289 MB · 99%
From the Hugging Face model README
This project predicts the level of air pollution (PM2.5 concentration) using historical environmental data collected from Beijing between 2010 and 2014. It uses a machine learning model trained on weather and pollution-related features.
PRSA_data_2010.1.1-2014.12.31.csvpm25_model.pkl: Trained ML modelREADME.md: Project documentationpm25_predict.py: Python script for inference (optional)You can use this model with the following steps
import pandas as pd import joblib from huggingface_hub import hf_hub_download
repo_id = "sanjibkuanr/pm25-pollution-predictor" filename = "pm25_model.pkl" model_path = hf_hub_download(repo_id=repo_id, filename=filename) model = joblib.load(model_path)
expected_features = model.feature_names_in_ print("Model expects features:\n", expected_features)
sample_input = pd.DataFrame([{ "dewp": -21, "temp": -12, "pres": 1020, "iws": 2.0, "is": 0, "ir": 0, "cbwd_NW": 1, "cbwd_SE": 0, "cbwd_cv": 0, "no": 100 }])
sample_input = sample_input[expected_features]
prediction = model.predict(sample_input) print("Predicted PM2.5 level:", prediction[0])
Developed by Sanjib Kuanr as part of a Machine Learning learning initiative. Feel free to connect with me on LinkedIn! You are free to use, modify, and distribute.