Views
No views yet
| Metric | Value |
|---|---|
| Accuracy | 0.6611 |
| F1 (macro) | 0.6610 |
| F1 (binary) | 0.6544 |
| ROC AUC | 0.7245 |
| ZeroR Baseline | 0.5041 |
| Improvement | +0.1570 |
1import joblib, json, numpy as np
2from huggingface_hub import hf_hub_download
3
4# Download model files
5lgb_model = joblib.load(hf_hub_download("lvizcaya/forex-eurusd-direction", "lgb_model.joblib"))
6xgb_model = joblib.load(hf_hub_download("lvizcaya/forex-eurusd-direction", "xgb_model.joblib"))
7scaler = joblib.load(hf_hub_download("lvizcaya/forex-eurusd-direction", "scaler.joblib"))
8feature_cols = json.load(open(hf_hub_download("lvizcaya/forex-eurusd-direction", "feature_columns.json")))
9
10# Prepare your features (see predict.py for full pipeline)
11# X = your_features[feature_cols].values
12# X_scaled = scaler.transform(X)
13# prob_up = (lgb_model.predict_proba(X_scaled)[:,1] + xgb_model.predict_proba(X_scaled)[:,1]) / 2
14# direction = "UP" if prob_up >= 0.5 else "DOWN"predict.py for a complete inference example.