MAG7 TCN Sequence Model
Public Temporal Convolutional Network classifier trained on a private MAG7 daily ML dataset.
Data Access
The model is public. The dataset remains private and is not distributed in this repository.
- Private training dataset:
kyLELEng/mag7-ml-daily-dataset-5y - Dataset file used internally:
mag7_ml_daily_dataset_5y.csv - No raw dataset rows, target labels, or future-return columns are included here.
Training Setup
- Task: binary classification
- Target:
target_next_10d_outperform_qqq - Architecture: TCN sequence model
- Lookback window: 60 daily bars
- Feature count: 187 selected numeric features plus ticker dummies
- Split: chronological train / validation / test
- Train end: 2024-03-06
- Validation end: 2025-02-19
- Test start: 2025-02-20
- Hardware: Hugging Face Jobs,
a10g-large - Device used: CUDA
Results
Validation was used for hyperparameter selection. Test metrics are out-of-sample on the final chronological holdout.
| Metric | Value |
|---|---|
| Best validation AUC | 0.5440 |
| Test AUC | 0.5051 |
| Test accuracy | 0.5087 |
| Test precision | 0.5013 |
| Test recall | 0.4612 |
| Top 20 pct avg future return | 0.0098 |
| Bottom 20 pct avg future return | 0.0243 |
| Top minus bottom future return | -0.0145 |
The holdout edge is weak. Treat this as a research artifact, not as a production trading signal.
Best Trial
- Hidden channels: 96
- Levels: 4
- Kernel size: 3
- Dropout: 0.1381
- Learning rate: 0.000118
- Weight decay: 0.0000688
- Epochs: 27
Files
model.ptscaler.joblibfeature_columns.jsonmetrics.jsontraining_log.csvtrial_results.csvtest_scores_public.csv
test_scores_public.csv contains dates, tickers, and model scores only. It intentionally excludes labels and future returns.
Intended Use
This model is for personal research and model comparison on MAG7 daily technical features. It is not investment advice and should not be used for live trading without separate validation, walk-forward testing, slippage assumptions, and risk controls.