Downloads · 30 days
27
6% of all-time downloads
lvizcaya/forex-eurusd-direction
forex-eurusd-direction is a tabular classification model from lvizcaya. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Binary classification model that predicts whether EUR/USD will close higher (UP) or lower (DOWN) the next trading day.
Downloads · 30 days
27
6% of all-time downloads
All-time downloads
421
Public
Repo size
2.6 MB
Likes
2
Public
Click a slice to open those files.
.csv6.1 MB · 69%
From the Hugging Face model README
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).
<!-- ml-intern-provenance -->This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.