AdityaaXD commited on
Commit
36b5735
Β·
verified Β·
1 Parent(s): 65e18dc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +114 -0
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - finance
5
+ - trading
6
+ - bitcoin
7
+ - cryptocurrency
8
+ - machine-learning
9
+ - deep-learning
10
+ - lstm
11
+ - transformer
12
+ - xgboost
13
+ - random-forest
14
+ - shap
15
+ language:
16
+ - en
17
+ library_name: pytorch
18
+ pipeline_tag: tabular-classification
19
+ ---
20
+
21
+ # πŸ“ˆ AI Multi-Model Trading Bot
22
+
23
+ A comprehensive cryptocurrency trading signal prediction system using 8 ML/DL models with ensemble voting.
24
+
25
+ ## 🎯 Model Overview
26
+
27
+ | Model Type | Models Included |
28
+ | :--- | :--- |
29
+ | **Traditional ML** | Logistic Regression, Random Forest, XGBoost |
30
+ | **Deep Learning** | LSTM, GRU, CNN, LSTM+Attention, Transformer |
31
+ | **Ensemble** | Majority voting across all models |
32
+
33
+ ## πŸ“Š Features Used
34
+
35
+ The models use 10 technical indicators:
36
+ - RSI (Relative Strength Index)
37
+ - MACD & MACD Signal
38
+ - Bollinger Band Width
39
+ - ATR (Average True Range)
40
+ - Distance from SMA50
41
+ - OBV Percentage Change
42
+ - ADX (Average Directional Index)
43
+ - Stochastic RSI (K & D)
44
+
45
+ ## πŸš€ Quick Start
46
+
47
+ ```python
48
+ import joblib
49
+ import torch
50
+
51
+ # Load scaler and config
52
+ scaler = joblib.load("scaler.pkl")
53
+ config = joblib.load("config.pkl")
54
+
55
+ # Load ML model
56
+ rf_model = joblib.load("random_forest.pkl")
57
+
58
+ # Load DL model
59
+ from your_models import LSTMModel
60
+ lstm = LSTMModel(config['input_dim'])
61
+ lstm.load_state_dict(torch.load("lstm.pt"))
62
+ lstm.eval()
63
+ ```
64
+
65
+ ## πŸ“ Files
66
+
67
+ | File | Description |
68
+ | :--- | :--- |
69
+ | `scaler.pkl` | StandardScaler for feature preprocessing |
70
+ | `config.pkl` | Model configuration (input_dim, timesteps, feature_cols) |
71
+ | `logistic_regression.pkl` | Trained Logistic Regression model |
72
+ | `random_forest.pkl` | Trained Random Forest model |
73
+ | `xgboost.pkl` | Trained XGBoost model |
74
+ | `lstm.pt` | Trained LSTM model weights |
75
+ | `gru.pt` | Trained GRU model weights |
76
+ | `cnn.pt` | Trained CNN model weights |
77
+ | `lstm_attention.pt` | Trained LSTM+Attention model weights |
78
+ | `transformer.pt` | Trained Transformer model weights |
79
+ | `shap_values.pkl` | SHAP feature importance values |
80
+ | `btc_usd_historical.csv` | Raw BTC-USD price data (2015-2025) |
81
+ | `btc_usd_features.csv` | Processed data with technical indicators |
82
+
83
+ ## πŸ“ˆ Training Data
84
+
85
+ - **Ticker**: BTC-USD
86
+ - **Date Range**: 2015-01-01 to 2025-01-01
87
+ - **Total Samples**: ~3,600 days
88
+ - **Train/Test Split**: 80/20
89
+
90
+ ## ⚠️ Disclaimer
91
+
92
+ This model is for **educational and research purposes only**. It should NOT be used for actual trading decisions. Cryptocurrency markets are highly volatile and past performance does not guarantee future results.
93
+
94
+ ## πŸ“Š SHAP Explainability
95
+
96
+ The model includes SHAP (SHapley Additive exPlanations) values for feature importance analysis, helping understand which technical indicators most influence predictions.
97
+
98
+ ## πŸ› οΈ Training Details
99
+
100
+ - **Hyperparameter Tuning**: GridSearchCV with 3-fold CV
101
+ - **Deep Learning**: 50 epochs, early stopping (patience=7)
102
+ - **Regularization**: Label smoothing (0.1), gradient clipping (1.0)
103
+ - **Class Balancing**: Weighted loss functions
104
+
105
+ ## πŸ“ Citation
106
+
107
+ ```bibtex
108
+ @misc{ai-trading-bot-2025,
109
+ title={AI Multi-Model Trading Bot},
110
+ author={Your Name},
111
+ year={2025},
112
+ publisher={Hugging Face}
113
+ }
114
+ ```