Downloads · 30 days
0
bhavin273/dynamic-parking-demand-model
dynamic-parking-demand-model is a machine learning model from bhavin273. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for xgboost. The card lists the license as mit.
This XGBoost model predicts parking demand factors based on location (H3 cells) and temporal features. It's designed for dynamic pricing systems that adjust parking rates based on predicted demand.
Downloads · 30 days
0
Access
Public
Updated Oct 5, 2026
Repo size
46.5 MB
Likes
0
Public
Click a slice to open those files.
.pkl422 KB · 99%
From the Hugging Face model README
This XGBoost model predicts parking demand factors based on location (H3 cells) and temporal features. It's designed for dynamic pricing systems that adjust parking rates based on predicted demand.
The model uses the following features for prediction:
Temporal Features:
hour_sin, hour_cos: Cyclical hour encodingWeekday: Day of week (0-6)Month: Month of year (1-12)Quarter: Quarter of year (1-4)is_weekend: Weekend indicatorisHoliday: Holiday indicatorSpatial Features:
h3_cell_enc: Encoded H3 cell identifierneighbor_availability: Parking availability in neighboring areasTrend Features:
day_number: Days since data starttrend_sq: Squared trend for non-linear patternsXGBRegressor(
n_estimators=600,
learning_rate=0.05,
max_depth=8,
subsample=0.9,
colsample_bytree=0.8,
objective="reg:squarederror"
)
This model is designed to:
curl -X POST "https://your-app.onrender.com/predict" \
-H "Content-Type: application/json" \
-d '{
"h3_cell": "8c2a100d1a2bfff",
"timestamp": "2026-01-20 14:00:00"
}'
import pickle
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="your-username/dynamic-parking-demand-model",
filename="demand_prediction_model.pkl"
)
# Load model
with open(model_path, "rb") as f:
model_data = pickle.load(f)
model = model_data["model"]
encoder = model_data["encoder"]
features = model_data["features"]
@software{dynamic_parking_demand_2026,
author = {Your Name},
title = {Dynamic Parking Demand Prediction Model},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/your-username/dynamic-parking-demand-model}
}
For questions or issues, please open an issue on the GitHub repository.