Downloads · 30 days
13
12% of all-time downloads
major-year-project/tft-option-pricing
tft-option-pricing is a machine learning model from major-year-project. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Part of RegimeWise -- A Deep Learning Option Pricing Framework (Phase 2: Baseline Model Comparison).
Downloads · 30 days
13
12% of all-time downloads
All-time downloads
105
Public
Repo size
25.5 MB
Likes
0
Public
Click a slice to open those files.
.csv13.7 MB · 51%
From the Hugging Face model README
Part of RegimeWise -- A Deep Learning Option Pricing Framework (Phase 2: Baseline Model Comparison).
A dependency-free, pure-PyTorch Temporal Fusion Transformer ("TFT-Lite") that predicts SPY option
mark price from option-chain, Greek, and liquidity features. Built with a Variable Selection
Network, an LSTM encoder, and interpretable multi-head self-attention -- no pytorch_forecasting
/ pytorch_lightning dependency.
Same dataset, feature set, and preprocessing as the project's LSTM baseline
(hf://datasets/major-year-project/stock-data/spy_options_2024.csv), with a 70/30 chronological
train/test split and 10-day per-contract input sequences.
Features (12): implied_volatility, delta, gamma, theta, vega, rho, tte_days, log_moneyness, strike, type_enc, volume, open_interest
Target: mark
mark price prediction| Metric | Value |
|---|---|
| RMSE | 11.3021 |
| MAE | 5.4133 |
| R2 | 0.9843 |
model.pt -- PyTorch state_dict for TFTLite (see config.json for architecture args)feature_scaler.joblib, target_scaler.joblib -- fitted StandardScalers (train split only)config.json -- architecture + training configuration, needed to reconstruct the modelmetrics.csv, test_predictions.csv, feature_importance.csv -- evaluation outputs