kpOX
AI & ML interests
None defined yet.
š§ kpOX Mini ā Open Source AI Model for Market Forecasting
š Overview
kpOX Mini is a lightweight, transformer-based AI model developed for predictive analytics in the futures and equity markets.
It is part of the larger kpOX platform ā used by both retail researchers and institutional trading teams.
This is the open-source edition, designed for learning, experimentation, and prototyping.
š§© Editions
| Version | Purpose | Access |
|---|---|---|
| š¢ kpOX Mini | Open-source for research and education | Free (MIT) |
| š kpOX Pro | Enterprise-grade model with full features | Licensed |
ā Features (kpOX Mini)
- Asset Support: Equity, index, and commodity futures
- Model Type: Time-series transformer with classification head
- Outputs:
direction: Up / Down probabilityexpected_return: Scaled valueconfidence: Model certainty (0ā1)
- Input Features:
- OHLCV data (price candles)
- Indicators: EMA, RSI, MACD, VWAP
- Optional news sentiment score
š Use Cases
- Academic research on time-series forecasting
- Educational examples in financial machine learning
- Backtesting and strategy prototyping
- Lightweight signal layer for DIY quant trading
š Quick Start
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained("kpox/ai-mini-futures")
tokenizer = AutoTokenizer.from_pretrained("kpox/ai-mini-futures")
inputs = tokenizer("2024-07-15 | ohlcv: [4178.4, 4190.0, 4160.3, 4187.2, 3100000], rsi: 62", return_tensors="pt")
outputs = model(**inputs)
probs = torch.nn.functional.softmax(outputs.logits, dim=-1)
print("š Up Probability:", round(probs[0][1].item(), 3))
āļø See
/examples/structured_inputs/for full input format (JSON or CSV-to-token examples).
š§ Architecture
| Component | Detail |
|---|---|
| Model Type | Transformer (Tiny / 6-head classification) |
| Input Window | 10ā30 time steps |
| Target Horizon | 1ā5 steps ahead forecast |
| Tokenization | Custom tokenizer for numeric time series |
| Framework | PyTorch + Hugging Face Transformers |
šļø Training Details
- Data: 7 years of intraday & EOD data (futures, equities)
- Indicators: Pre-computed with TA-Lib + custom scalers
- Optimizer: AdamW + Lookahead
- Loss: Weighted Huber + Directional penalty
- Epochs: 20 (Mini) / 100+ (Pro)
š Evaluation
| Metric | Value (Mini) | Notes |
|---|---|---|
| Accuracy | ~58ā62% | Depending on symbol |
| Precision (Up) | ~0.60 | Class-imbalanced adjusted |
| F1 Score | ~0.58 | Baseline + signal threshold |
| Backtest Edge | Moderate | On trend-based strategies |
kpOX Pro improves all scores significantly using broader data and deeper architecture.
š kpOX Pro ā Enterprise Edition
kpOX Pro is used by hedge funds, quant desks, and banks.
It features:
- Sector-specific model heads (tech, energy, FX)
- Macroeconomic calendar conditioning
- Broker API streaming (IBKR, Alpaca)
- Risk engine integration
- Portfolio-level output & optimization
- Hosted API, WebSocket, and inference servers
ā ļø License & Legal
- kpOX Mini is licensed under the MIT License.
- You may use, modify, and redistribute for research and educational purposes.
- kpOX Pro is commercially licensed and not part of this repo.
š Commercial or production use of kpOX Pro requires a separate agreement.
š Disclaimers
- This is not financial advice.
- Use responsibly, with proper backtesting, legal compliance, and market risk management.
- Past performance of AI models does not guarantee future results.
š¤ Contributing
We welcome feedback, collaboration ideas, and pull requests for:
- Improved preprocessing
- New training data modules
- Model evaluation extensions
š Links
Ā© 2025 kpOX, Inc. All rights reserved.