Re(Visiting) Time Series Foundation Models in Finance
Paper • 2511.18578 • Published
Binary classification model that predicts whether EUR/USD will close higher (UP) or lower (DOWN) the next trading day.
| Metric | Value |
|---|---|
| Accuracy | 0.6611 |
| F1 (macro) | 0.6610 |
| F1 (binary) | 0.6544 |
| ROC AUC | 0.7245 |
| ZeroR Baseline | 0.5041 |
| Improvement | +0.1570 |
The model uses 53 features including:
import joblib, json, numpy as np
from huggingface_hub import hf_hub_download
# Download model files
lgb_model = joblib.load(hf_hub_download("lvizcaya/forex-eurusd-direction", "lgb_model.joblib"))
xgb_model = joblib.load(hf_hub_download("lvizcaya/forex-eurusd-direction", "xgb_model.joblib"))
scaler = joblib.load(hf_hub_download("lvizcaya/forex-eurusd-direction", "scaler.joblib"))
feature_cols = json.load(open(hf_hub_download("lvizcaya/forex-eurusd-direction", "feature_columns.json")))
# Prepare your features (see predict.py for full pipeline)
# X = your_features[feature_cols].values
# X_scaled = scaler.transform(X)
# prob_up = (lgb_model.predict_proba(X_scaled)[:,1] + xgb_model.predict_proba(X_scaled)[:,1]) / 2
# direction = "UP" if prob_up >= 0.5 else "DOWN"
See predict.py for a complete inference example.
Based on published financial ML literature:
This model is for research and educational purposes only. It is NOT financial advice. Forex trading involves significant risk. Past performance does not guarantee future results. Realistic accuracy for daily direction prediction is 52-56% (literature consensus).
This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.