IshaanMan123 commited on
Commit
e9d0fbf
·
verified ·
1 Parent(s): 165e8a8

Update model card - stock

Browse files
Files changed (1) hide show
  1. README.md +62 -183
README.md CHANGED
@@ -13,18 +13,18 @@ tags:
13
  - forex-prediction
14
  ---
15
 
16
- # ARA.AI - Advanced Financial Prediction Models
17
 
18
  ## Model Overview
19
 
20
- ARA.AI provides enterprise-grade financial prediction models built on the Revolutionary 2026 architecture. These models leverage state-of-the-art machine learning techniques for accurate stock and forex market predictions.
21
 
22
  ### Architecture Highlights
23
 
24
- - **Revolutionary 2026 Architecture**: Latest advances in deep learning
25
- - **71M Parameters**: Large-scale model for comprehensive pattern recognition
26
- - **Unified Design**: Single model handles all stocks or all forex pairs
27
- - **Production Ready**: Thoroughly tested and validated
28
 
29
  ## Technical Specifications
30
 
@@ -32,67 +32,51 @@ ARA.AI provides enterprise-grade financial prediction models built on the Revolu
32
 
33
  | Component | Description |
34
  |-----------|-------------|
35
- | **Mamba SSM** | State Space Models for efficient sequence modeling |
36
- | **RoPE** | Rotary Position Embeddings for better position encoding |
37
- | **GQA** | Grouped Query Attention for computational efficiency |
38
- | **MoE** | Mixture of Experts for specialized pattern recognition |
39
- | **SwiGLU** | Advanced activation function for transformers |
40
- | **RMSNorm** | Root Mean Square Normalization for training stability |
41
- | **Flash Attention 2** | Memory-efficient attention mechanism |
42
 
43
  ### Model Specifications
44
 
45
  ```
46
  Architecture: Revolutionary 2026
47
- Parameters: 71,000,000
48
  Input Features: 44 technical indicators
49
  Sequence Length: 30 time steps
50
- Hidden Dimensions: 512
51
  Transformer Layers: 6
52
- Attention Heads: 8 (Query), 2 (Key/Value)
53
- Experts: 4 specialized models
54
- Prediction Heads: 4 ensemble heads
55
  ```
56
-
57
  ## Available Models
58
 
59
- ### 1. Unified Stock Model
60
- - **File**: `models/unified_stock_model.pt`
61
- - **Purpose**: Stock market prediction
62
- - **Coverage**: All stock tickers
63
- - **Accuracy**: >99.9%
64
- - **Training**: Hourly updates
65
 
66
- ### 2. Unified Forex Model
67
- - **File**: `models/unified_forex_model.pt`
68
- - **Purpose**: Forex market prediction
69
- - **Coverage**: Major and exotic currency pairs
70
- - **Accuracy**: >99.5%
71
- - **Training**: Hourly updates
72
 
73
  ## Performance Metrics
74
 
75
- ### Stock Model
76
-
77
- | Metric | Value |
78
- |--------|-------|
79
- | Validation Accuracy | >99.9% |
80
- | Validation Loss | <0.0004 |
81
- | Training Time | 2-3 minutes |
82
- | Inference Time | <100ms |
83
- | Memory Usage | ~300MB |
84
-
85
- ### Forex Model
86
 
87
- | Metric | Value |
88
- |--------|-------|
89
- | Validation Accuracy | >99.5% |
90
- | Validation Loss | <0.0006 |
91
- | Training Time | 2-3 minutes |
92
- | Inference Time | <100ms |
93
- | Memory Usage | ~300MB |
94
-
95
- ## Usage
96
 
97
  ### Installation
98
 
@@ -100,164 +84,59 @@ Prediction Heads: 4 ensemble heads
100
  pip install torch transformers huggingface_hub
101
  ```
102
 
103
- ### Loading Models
104
 
105
  ```python
106
  from huggingface_hub import hf_hub_download
107
  from meridianalgo.unified_ml import UnifiedStockML
108
- from meridianalgo.forex_ml import ForexML
109
 
110
- # Download stock model
111
- stock_model_path = hf_hub_download(
112
- repo_id="MeridianAlgo/ARA.AI",
113
  filename="models/unified_stock_model.pt"
114
  )
115
 
116
- # Load and use
117
- ml = UnifiedStockML(model_path=stock_model_path)
118
- prediction = ml.predict_ultimate('AAPL', days=5)
119
-
120
- # Download forex model
121
- forex_model_path = hf_hub_download(
122
- repo_id="MeridianAlgo/ARA.AI",
123
- filename="models/unified_forex_model.pt"
124
- )
125
-
126
- # Load and use
127
- forex_ml = ForexML(model_path=forex_model_path)
128
- forex_pred = forex_ml.predict_forex('EURUSD', days=5)
129
- ```
130
-
131
- ### Prediction Example
132
 
133
- ```python
134
- # Stock prediction
135
  prediction = ml.predict_ultimate('AAPL', days=5)
136
 
137
- print(f"Current Price: ${prediction['current_price']:.2f}")
138
- print("\nForecast:")
139
- for pred in prediction['predictions']:
140
- print(f" Day {pred['day']}: ${pred['predicted_price']:.2f} "
141
- f"(Confidence: {pred['confidence']:.1%})")
142
-
143
- # Output:
144
- # Current Price: $150.25
145
- #
146
- # Forecast:
147
- # Day 1: $151.30 (Confidence: 85.0%)
148
- # Day 2: $152.10 (Confidence: 77.0%)
149
- # Day 3: $151.85 (Confidence: 69.0%)
150
- # Day 4: $152.50 (Confidence: 61.0%)
151
- # Day 5: $153.20 (Confidence: 53.0%)
152
  ```
153
 
154
- ## Technical Indicators
155
-
156
- The models use 44 technical indicators:
157
-
158
- ### Price-Based
159
- - Returns, Log Returns
160
- - Volatility, ATR
161
-
162
- ### Moving Averages
163
- - SMA (5, 10, 20, 50, 200)
164
- - EMA (5, 10, 20, 50, 200)
165
 
166
- ### Momentum
167
- - RSI (14-period)
168
- - MACD (12, 26, 9)
169
- - ROC, Momentum
 
 
170
 
171
- ### Volatility
172
- - Bollinger Bands (20, 2)
173
- - ATR (14-period)
174
 
175
- ### Volume
176
- - Volume Ratio
177
- - Volume SMA (20-period)
178
 
179
- ## Training Details
180
-
181
- ### Training Configuration
182
-
183
- ```python
184
- {
185
- "epochs": 500,
186
- "batch_size": 64,
187
- "learning_rate": 0.0001,
188
- "optimizer": "AdamW",
189
- "scheduler": "CosineAnnealingWarmRestarts",
190
- "validation_split": 0.2,
191
- "early_stopping_patience": 80
192
- }
193
- ```
194
-
195
- ### Training Infrastructure
196
-
197
- - **Platform**: GitHub Actions
198
- - **Frequency**: Hourly (48 sessions per day combined)
199
- - **Data**: Latest market data
200
- - **Tracking**: Comet ML
201
- - **Storage**: Hugging Face Hub
202
-
203
- ## Limitations
204
-
205
- 1. **Historical Data Dependency**: Models trained on historical data may not predict unprecedented market events
206
- 2. **Market Conditions**: Performance may vary during extreme market volatility
207
- 3. **Prediction Horizon**: Accuracy decreases for longer-term predictions
208
- 4. **Data Quality**: Predictions depend on input data quality
209
- 5. **Not Financial Advice**: Models are for research and educational purposes only
210
-
211
- ## Ethical Considerations
212
-
213
- - **Transparency**: Open-source architecture and training process
214
- - **Bias**: Models may reflect biases present in historical market data
215
- - **Responsible Use**: Users must understand limitations and risks
216
- - **No Guarantees**: Past performance does not guarantee future results
217
 
218
  ## Citation
219
 
220
- If you use these models in your research, please cite:
221
 
222
  ```bibtex
223
- @software{ara_ai_2026,
224
- title = {ARA.AI: Advanced Financial Prediction Platform},
225
  author = {MeridianAlgo},
226
  year = {2026},
227
- url = {https://github.com/MeridianAlgo/AraAI},
228
- version = {8.0.0}
229
  }
230
  ```
231
 
232
- ## License
233
-
234
- MIT License - See [LICENSE](https://github.com/MeridianAlgo/AraAI/blob/main/LICENSE) for details.
235
-
236
  ## Disclaimer
237
 
238
- **IMPORTANT**: These models are for educational and research purposes only.
239
-
240
- - Not financial advice
241
- - Past performance does not guarantee future results
242
- - All predictions are probabilistic
243
- - Users are solely responsible for investment decisions
244
- - Consult qualified financial professionals
245
- - Authors are not liable for financial losses
246
-
247
- ## Links
248
-
249
- - **Repository**: https://github.com/MeridianAlgo/AraAI
250
- - **Documentation**: https://github.com/MeridianAlgo/AraAI/blob/main/README.md
251
- - **Issues**: https://github.com/MeridianAlgo/AraAI/issues
252
- - **Comet ML**: https://www.comet.ml/ara-ai
253
-
254
- ## Version History
255
-
256
- - **v8.0.0** (January 2026): Revolutionary 2026 Architecture
257
- - **v7.0.0** (January 2026): Separate training workflows
258
- - **v6.0.0** (January 2026): Unified model architecture
259
-
260
- ---
261
-
262
- **Last Updated**: January 2026
263
- **Maintained by**: [MeridianAlgo](https://github.com/MeridianAlgo)
 
13
  - forex-prediction
14
  ---
15
 
16
+ # MeridianAlgo Financial Prediction Models
17
 
18
  ## Model Overview
19
 
20
+ This repository contains financial prediction models built on the latest state-of-the-art 2026 architecture. These models leverage machine learning techniques, including Mamba State Space Models, Mixture of Experts, and Flash Attention 2, for accurate market forecasting.
21
 
22
  ### Architecture Highlights
23
 
24
+ - Latest 2026 Architecture: Implementing the latest advances in deep learning for time series.
25
+ - 388M Parameters: Large-scale model for comprehensive pattern recognition.
26
+ - Unified Design: A single high-capacity model architectures for all assets within its class.
27
+ - Specialized Logic: Distinct optimization paths for Stocks and Forex markets.
28
 
29
  ## Technical Specifications
30
 
 
32
 
33
  | Component | Description |
34
  |-----------|-------------|
35
+ | Mamba SSM | State Space Models for efficient long-range sequence modeling with linear complexity. |
36
+ | RoPE | Rotary Position Embeddings for enhanced temporal relationship encoding. |
37
+ | GQA | Grouped Query Attention for optimized computational throughput. |
38
+ | MoE | Mixture of Experts with top-k routing for specialized regime recognition. |
39
+ | SwiGLU | Swish-Gated Linear Unit activation for improved transformer performance. |
40
+ | RMSNorm | Root Mean Square Normalization for enhanced gradient stability. |
41
+ | Flash Attention 2 | High-performance, memory-efficient attention implementation. |
42
 
43
  ### Model Specifications
44
 
45
  ```
46
  Architecture: Revolutionary 2026
47
+ Parameters: 388,000,000
48
  Input Features: 44 technical indicators
49
  Sequence Length: 30 time steps
50
+ Hidden Dimensions: 768
51
  Transformer Layers: 6
52
+ Attention Heads: 12 (Query), 4 (Key/Value)
53
+ Experts: 12 specialized models
54
+ Prediction Heads: 8 ensemble heads
55
  ```
 
56
  ## Available Models
57
 
58
+ ### 1. MeridianAlgo Stocks Model
59
+ - Repo ID: MeridianAlgo/MeridianAlgo_Stocks
60
+ - Purpose: Comprehensive stock market forecasting.
61
+ - Coverage: Broad equity market compatibility.
62
+ - Accuracy: Optimized for directional consistency.
 
63
 
64
+ ### 2. MeridianAlgo Forex Model
65
+ - Repo ID: MeridianAlgo/MeridianAlgo_Forex
66
+ - Purpose: High-precision currency pair forecasting.
67
+ - Coverage: Major, Minor, and Exotic pairs.
68
+ - Accuracy: Optimized for pip-based movement prediction.
 
69
 
70
  ## Performance Metrics
71
 
72
+ | Attribute | Stocks Model | Forex Model |
73
+ |-----------|--------------|-------------|
74
+ | Parameters | 388 Million | 388 Million |
75
+ | Inference Latency | <100ms | <100ms |
76
+ | Model Size | ~1.5 GB | ~1.5 GB |
77
+ | Accuracy | Optimized | Optimized |
 
 
 
 
 
78
 
79
+ ## Usage and Implementation
 
 
 
 
 
 
 
 
80
 
81
  ### Installation
82
 
 
84
  pip install torch transformers huggingface_hub
85
  ```
86
 
87
+ ### Loading and Inference
88
 
89
  ```python
90
  from huggingface_hub import hf_hub_download
91
  from meridianalgo.unified_ml import UnifiedStockML
 
92
 
93
+ # Download the unified stocks model
94
+ model_path = hf_hub_download(
95
+ repo_id="MeridianAlgo/MeridianAlgo_Stocks",
96
  filename="models/unified_stock_model.pt"
97
  )
98
 
99
+ # Initialize the system
100
+ ml = UnifiedStockML(model_path=model_path)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
+ # Execute prediction
 
103
  prediction = ml.predict_ultimate('AAPL', days=5)
104
 
105
+ print(f"Current Price: {prediction['current_price']}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  ```
107
 
108
+ ## Training Methodology
 
 
 
 
 
 
 
 
 
 
109
 
110
+ ### Configuration
111
+ - Optimizer: AdamW with Weight Decay
112
+ - Scheduler: Cosine Annealing with Warm Restarts
113
+ - Loss Function: Balanced Directional Loss
114
+ - Batch Size: 64
115
+ - Learning Rate: 0.0005
116
 
117
+ ### Infrastructure
118
+ Models are trained using a distributed pipeline with Accelerate, tracking all metrics via Comet ML for rigorous validation.
 
119
 
120
+ ## Limitations and Ethical Use
 
 
121
 
122
+ 1. Market Volatility: Performance may degrade during black swan events or extreme volatility.
123
+ 2. Horizon Decay: Predictive accuracy naturally decreases as the forecast horizon extends.
124
+ 3. Historical Bias: Models reflect patterns in historical data which may not repeat.
125
+ 4. Professional Use Only: Intended for research; users bear all financial risk.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
  ## Citation
128
 
129
+ If utilizing these models in professional research or applications, please cite:
130
 
131
  ```bibtex
132
+ @software{meridianalgo_2026,
133
+ title = {MeridianAlgo: Revolutionary Financial Prediction Platform},
134
  author = {MeridianAlgo},
135
  year = {2026},
136
+ version = {4.0.0}
 
137
  }
138
  ```
139
 
 
 
 
 
140
  ## Disclaimer
141
 
142
+ IMPORTANT: These models are for research and educational purposes only. They do not constitute financial advice. All trading involves risk of capital loss. The developers and contributors are not registered financial advisors.