Views
No views yet
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 indicatorh3_cell_enc: Encoded H3 cell identifierneighbor_availability: Parking availability in neighboring areasday_number: Days since data starttrend_sq: Squared trend for non-linear patterns1XGBRegressor(
2 n_estimators=600,
3 learning_rate=0.05,
4 max_depth=8,
5 subsample=0.9,
6 colsample_bytree=0.8,
7 objective="reg:squarederror"
8)1curl -X POST "https://your-app.onrender.com/predict" \
2 -H "Content-Type: application/json" \
3 -d '{
4 "h3_cell": "8c2a100d1a2bfff",
5 "timestamp": "2026-01-20 14:00:00"
6 }'1import pickle
2from huggingface_hub import hf_hub_download
3
4# Download model
5model_path = hf_hub_download(
6 repo_id="your-username/dynamic-parking-demand-model",
7 filename="demand_prediction_model.pkl"
8)
9
10# Load model
11with open(model_path, "rb") as f:
12 model_data = pickle.load(f)
13 model = model_data["model"]
14 encoder = model_data["encoder"]
15 features = model_data["features"]1@software{dynamic_parking_demand_2026,
2 author = {Your Name},
3 title = {Dynamic Parking Demand Prediction Model},
4 year = {2026},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/your-username/dynamic-parking-demand-model}
7}