Downloads · 30 days
0
BrejBala/Bike_Sharing_Demand
Bike_Sharing_Demand is a tabular regression model from BrejBala. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for autogluon.
This model predicts hourly bike rental demand (the target column count) from structured historical + weather/time features using AutoGluon’s TabularPredictor (AutoML for tabular regression). The workflow is based on t…
Downloads · 30 days
0
Access
Public
Updated Dec 13, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.ipynb3.4 MB · 78%
From the Hugging Face model README
This model predicts hourly bike rental demand (the target column count) from structured historical + weather/time features using AutoGluon’s TabularPredictor (AutoML for tabular regression). The workflow is based on the Udacity “Predict Bike Sharing Demand with AutoGluon” project and targets the Kaggle Bike Sharing Demand competition dataset.
TabularPredictor (tabular regression)countOut of scope:
Dataset: Kaggle “Bike Sharing Demand”
Typical columns include:
datetime, season, holiday, workingday, weather, temp, atemp, humidity, windspeedcasual, registeredcountNote: The Kaggle competition evaluates submissions using RMSLE (root mean squared log error). The project tracks Kaggle submission scores alongside offline validation metrics.
datetime is parsed as a datetime type.ignored_columns = ["casual", "registered"] because they are not available in the Kaggle test set and would cause leakage if used.datetime:
year, month, day, hourBase configuration used in the notebook:
TabularPredictor(label="count", problem_type="regression", eval_metric="root_mean_squared_error")best_qualityHyperparameter optimization (HPO) run:
hyperparameter_tune_kwargs:
num_trials = 20searcher = "auto"scheduler = "local"Important note about AutoGluon leaderboard scores:
score_val is the negative RMSE (sign-flipped), so you can interpret:
score_valOffline validation (AutoGluon internal validation; best run from the notebook):
score_val: -39.953761 (root_mean_squared_error)Kaggle public leaderboard (submissions generated from notebook):
Recommendation: Upload the entire AutoGluon model directory produced by training (commonly something like AutogluonModels/<run_name>/) to your Hugging Face model repo.
Example inference pattern:
import pandas as pd
from huggingface_hub import snapshot_download
from autogluon.tabular import TabularPredictor
repo_id = "YOUR_USERNAME/YOUR_MODEL_REPO"
# Download the whole repo snapshot (works well for AutoGluon folders)
local_dir = snapshot_download(repo_id=repo_id)
# Point this to the directory that contains the AutoGluon predictor artifacts
predictor = TabularPredictor.load(local_dir)
# Example input (use correct values and columns)
X = pd.DataFrame([{
"datetime": "2012-12-19 17:00:00",
"season": 4,
"holiday": 0,
"workingday": 1,
"weather": 1,
"temp": 10.0,
"atemp": 12.0,
"humidity": 60,
"windspeed": 15.0
}])
preds = predictor.predict(X)
print(float(preds.iloc[0]))
If your trained model expects engineered columns (like year, month, day, hour), ensure you create them exactly the same way before calling predict().
datetime, season, holiday, workingday, weather, temp, atemp, humidity, windspeedcasual, registeredyear, month, day, hourdatetime parsing or feature generation differs from training, predictions may be unreliable.AutoGluon tabular training for this project is typically CPU-friendly and time-bounded (10 minutes in the notebook). Compute footprint is modest compared to deep learning workloads, but best-quality presets can still train multiple models and ensembles.
TabularPredictor)For questions/feedback, please open an issue on the GitHub repository: https://github.com/brej-29/udacity-AWS-ml-engineer-nanodegree/tree/main/Bike%20Sharing%20Demand%20with%20AutoGluon