Skip to content

A machine learning project to predict bike rental demand using historical data. This project uses an end-to-end workflow including data preprocessing, feature engineering, and a tuned XGBoost Regressor model to achieve high predictive accuracy.

License

Notifications You must be signed in to change notification settings

MonarchofCoding/bike-sharing-demand-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bike-Sharing Demand Prediction

Project Overview

This project aims to accurately predict the demand for a bike-sharing service. By analyzing historical data, we built a machine learning model to forecast the number of bike rentals based on various factors like weather conditions, time of day, and seasonal information. The primary goal is to provide a predictive tool that can help optimize bike fleet management and ensure timely availability for users.

Key Features

  • Data Preprocessing: Handled missing values, formatted data, and engineered new features from existing data.
  • Exploratory Data Analysis (EDA): Explored the relationships between weather, time, and bike rental counts.
  • Model Building: Utilized a powerful XGBoost Regressor model for its high performance and robustness.
  • Hyperparameter Tuning: Employed Grid Search with cross-validation to find the optimal model settings and prevent overfitting.
  • Model Evaluation: Evaluated the model's performance using industry-standard regression metrics (R-squared, MAE, RMSE).

Results

The final tuned model achieved outstanding results on the unseen test data:

  • Mean Absolute Error (MAE): ~34.79
  • Root Mean Squared Error (RMSE): ~53.81
  • R-squared ($R^2$): ~0.91

Technologies & Libraries

  • Python
  • Pandas
  • Numpy
  • Scikit-learn
  • XGBoost
  • Matplotlib & Seaborn

Author

  • MonarchofCoding

About

A machine learning project to predict bike rental demand using historical data. This project uses an end-to-end workflow including data preprocessing, feature engineering, and a tuned XGBoost Regressor model to achieve high predictive accuracy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published