686 B
686 B
OHLCV Predictor - Simple Inference
Refactored for easy reuse in other projects.
Usage
from predictor import OHLCVPredictor
predictor = OHLCVPredictor('model.json')
predictions = predictor.predict(your_ohlcv_dataframe)
Files Needed
Copy these 5 files to your other project:
predictor.pycustom_xgboost.pyfeature_engineering.pytechnical_indicator_functions.pyxgboost_model_all_features.json
Data Requirements
Your DataFrame needs these columns:
Open,High,Low,Close,Volume,Timestamp
Dependencies
xgboost >= 3.0.2
pandas >= 2.2.3
numpy >= 2.2.3
scikit-learn >= 1.6.1
ta >= 0.11.0
numba >= 0.61.2