Giter Club home page Giter Club logo

bike-availability-prediction's Introduction

Bike Availability Prediction

This project serves as the final project for the Postgraduate Course in Data Science and Machine Learning at the University of Barcelona. It was developed as part of the curriculum to demonstrate the application of machine learning techniques in solving real-world problems.

The project focuses on predicting the availability of docked bikes at various bike-sharing systems in Barcelona city, utilizing datasets from the Barcelona Open Data platform.

Structure of the repository

The project directory looks like this:

├── README.md
│
├── 1_🏠_Home.py            <- Script to run a multi-page web app created with Streamlit.
│
├── pages                   <- Secondary pages of the web app.
│   ├── 2_📊_EDA.py
│   └── 3_🔮_Cycle-seeker.py
│    
├── data
│   ├── processed           <- The final, canonical data sets for modeling.
│   └── raw                 <- The original, immutable data dump.
│
├── models                  <- Trained and serialized models.
│
├── notebooks               <- Jupyter notebooks.
│
├── reports            
│   └── figures             <- Generated graphics and figures.
│
├── requirements.txt
│
├── setup.py                <- Makes project pip installable (pip install -e .).
│ 
└── src                     <- Source code for use in this project.
    ├── __init__.py  
    │
    ├── components          <- Scripts to download or generate data.
    │   ├── __init__.py
    │   └── data_collection.py
    │
    ├── pipeline            <- Script to make predictions from metadata_sample_submission.csv file.
    │    ├── __init__.py
    │    ├── artifacts              <- Model predictions.
    │    └── make_prediction.py
    │
    └── utils.py            <- Helper functions used in the project.

Quick-start

To set up the project, follow these steps:

  • Clone this repo:
git clone https://github.com/jadelaossa/bike-availability-prediction.git
  • Create and activate virtual enviroment:
conda create -n bike-availability-prediction python=3.9
conda activate bike-availability-prediction
  • Install the requiered dependencies:
pip install -r requirements.txt

Data Source

The data used in this project can be obtained from the Open Data BCN platform. Follow the links below to access and download the required datasets:

  1. Bicing station status can be found here.
  2. Bicing stations information can be found here.
  3. Statistical resources of the meteorological stations of Barcelona can be found here.

Results

In this project, we applied several machine learning algorithms to predict bike availability. The best performing model is a combination of an XGBoost model and a neural network (NN), where we employed an ensemble technique. The ensemble model leverages the predictions from both the XGBoost model and the NN and calculates the average of these predictions to obtain the final prediction.

Contributors

This project was developed by:

  • Dorleta Orúe-Echevarría Iglesias
  • María Alejandra Zalles Hoyos
  • Patricia Merchán Guedea
  • Javier Alejandro de la Ossa Fernández

bike-availability-prediction's People

Contributors

jadelaossa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.