Downloads · 30 days
0
AcyLa/crypto-predictive-model
crypto-predictive-model is a machine learning model from AcyLa. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A production-grade machine learning pipeline for cryptocurrency price prediction using 15 years of Yahoo Finance historical data, engineered for integration with high-frequency trading systems.
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2026
Repo size
6.7 MB
Likes
0
Public
Click a slice to open those files.
.pt6.5 MB · 97%
From the Hugging Face model README
A production-grade machine learning pipeline for cryptocurrency price prediction using 15 years of Yahoo Finance historical data, engineered for integration with high-frequency trading systems.
pip install yfinance pandas numpy scikit-learn lightgbm ta torch pyarrow joblib
git clone https://huggingface.co/AcyLa/crypto-predictive-model
cd crypto-predictive-model
python train.py --ticker BTC-USD
python predict.py --ticker BTC-USD
Data (yfinance) → Features (207 indicators) → Labels (multi-horizon) → Ensemble (LightGBM+LSTM) → Prediction API
↑
Walk-Forward Backtester (purged CV)
| Component | Description |
|---|---|
| Data | Downloads up to 15 years of OHLCV from Yahoo Finance (BTC since 2014) |
| Features | 207 causal technical indicators: trend, momentum, volatility, volume, price structure, regime, calendar |
| Labels | Multi-horizon (1d, 3d, 7d, 14d, 30d) regression + classification + triple-barrier |
| Models | Ensemble of LightGBM (gradient boosting) + LSTM with attention pooling |
| Backtest | Walk-forward cross-validation with purging — no look-ahead bias |
| Prediction | Real-time multi-horizon signals with consensus voting |
from predict import CryptoPredictor
predictor = CryptoPredictor(ticker="BTC-USD")
result = predictor.get_multi_horizon(use_lstm=False) # sub-ms for HFT
print(f"Consensus: {result['consensus']} ({result['consensus_confidence']:.0%})")
See hft_integration.py for a complete trading loop with stop-loss, take-profit, and position management.
| Mode | Latency | Use Case |
|---|---|---|
| LightGBM only | < 1ms | HFT, tick-level |
| LightGBM + LSTM (CPU) | ~6-50ms | Swing trading |
├── config.py # All hyperparameters
├── data_loader.py # Yahoo Finance download
├── features.py # 207 technical indicators
├── labels.py # Multi-horizon labels + triple-barrier
├── models.py # LightGBM + LSTM ensemble
├── backtest.py # Walk-forward backtesting engine
├── train.py # Main training pipeline
├── predict.py # Live prediction API + CLI
├── hft_integration.py # HFT trading loop example
└── models/BTC-USD/ # Trained models
Research tool, not financial advice. Always backtest with transaction costs and never risk more than you can afford to lose.
<!-- ml-intern-provenance -->This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "AcyLa/crypto-predictive-model"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.