How hzjken/hft-price-prediction works
This is a high-frequency trading price-movement classification project. Its workflow transforms market data, engineers and selects features, trains tree-based classifiers, and uses saved models and selected features for prediction. The README documents preprocessing, correlation filtering, feature engineering, hybrid selection, and LightGBM tuning; the excerpt shows parts of the implementation and prediction path. Some training orchestration is omitted, so links for that flow rely on the README rather than an inspected full pipeline.
Main entry points: modelling_pipeline.py Price prediction · data.csv Market data · rf.joblib Saved RF model · lgbm.joblib Saved LightGBM model
Components 14
Data preparation
- Market data
data.csv - Preprocessing
modelling_pipeline.py
Feature processing
- Correlation filter
modelling_pipeline.py - Feature engineering
modelling_pipeline.py - Feature selection
modelling_pipeline.py - Selected features
features.txt
Modeling and prediction
- Random forest
modelling_pipeline.py - LightGBM
modelling_pipeline.py - Parameter tuning
modelling_pipeline.py - Saved RF model
rf.joblib - Saved LightGBM model
lgbm.joblib - Price prediction
modelling_pipeline.py - Class prediction
Other components
- Analyst
Connections 16
- Analyst → Market data: provides
README.md - Market data → Preprocessing: preprocesses
README.md - Preprocessing → Correlation filter: filters
README.md - Correlation filter → Feature engineering: engineers
README.md - Feature engineering → Feature selection: selects
README.md - Feature selection → Random forest: uses selection
README.md - Feature selection → LightGBM: uses selection
README.md - LightGBM → Parameter tuning: tunes parameters
README.md - Analyst → Price prediction: requests prediction
- Price prediction → Preprocessing: preprocesses
modelling_pipeline.py - Price prediction → Selected features: loads features
modelling_pipeline.py - Price prediction → Saved RF model: loads model
modelling_pipeline.py - Price prediction → Saved LightGBM model: loads model
modelling_pipeline.py - Price prediction → Class prediction: returns prediction
modelling_pipeline.py - Random forest → Saved RF model: saves model
modelling_pipeline.py - LightGBM → Saved LightGBM model: saves model
modelling_pipeline.py