GithubHelp home page GithubHelp logo

lukablagoje / dynamic-xgboost-model-data-stream-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.49 MB

XGBoost model on a data stream to predict stock prices

Jupyter Notebook 100.00%
data-stream stock-price-prediction xgboost-regression

dynamic-xgboost-model-data-stream-prediction's Introduction

Dynamic XGBoost-based model on a data stream for stock price prediction

In this Kaggle competition, the goal was to predict the closing prices of 200 different stocks, at the last 10 minutes of the NASDAQ closing auction. The training data encompassed 480 days of auctions, while the scoring was done on the unknown test set, which was revealed day by day since the start of the competition. This means that many of the tasks had to be automatized for a data stream, including data collection and cleaning, feature engineering, model retraining, and prediction. To predict the prices, a machine learning model was used, specifically XGBoost Regressor (displayed in the figure). As the final submission allowed for two strategies, there were two variants of the final prediction system:

  1. One model that encompassed all 200 stocks, with retraining after each day.
  2. For each stock, an individual model, without the retraining.

image

Technical Overview

The project is split into two parts:

1. k_fold_time_series_hyperoptimization.ipynb - Found optimal hyperparameters using k-fold cross-validation tailored for time-series data, including periodic retraining.

2. data_stream_prediction.ipynb - Automated data-stream tasks: data collection and cleaning, feature engineering, model retraining, and prediction for the final submission in the competition.

Data

Accessible under the rules of the competition at this link: https://www.kaggle.com/competitions/optiver-trading-at-the-close

Kaggle Notebook: https://www.kaggle.com/code/lukablagoje/xgboost-pipeline

Image Source: https://www.researchgate.net/figure/Simplified-structure-of-XGBoost_fig2_348025909

dynamic-xgboost-model-data-stream-prediction's People

Contributors

lukablagoje 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.