Downloads · 30 days
0
theonegareth/GoldPricePredictor
GoldPricePredictor is a machine learning model from theonegareth. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sklearn. The card lists the license as mit.
This model predicts the next-day direction of gold prices (up or down) based on historical Antam gold price data and technical indicators.
Downloads · 30 days
0
Access
Public
Updated Nov 17, 2025
Repo size
393 KB
Likes
0
Public
Click a slice to open those files.
.joblib393 KB · 97%
From the Hugging Face model README
This model predicts the next-day direction of gold prices (up or down) based on historical Antam gold price data and technical indicators.
from huggingface_hub import hf_hub_download
from joblib import load
# Download model
model_path = hf_hub_download("theonegareth/GoldPricePredictor", "gold_direction_model.joblib")
model = load(model_path)
The model expects a pandas DataFrame with the same feature columns used in training.
import pandas as pd
# Example feature vector (you need to compute these from your data)
features = pd.DataFrame({
'ret': [0.01],
'log_ret': [0.00995],
'ret_lag_1': [0.005],
# ... all required features
})
# Predict probability of going up
proba_up = model.predict_proba(features)[:, 1]
prediction = (proba_up >= 0.52).astype(int) # Using optimized threshold
To use this model, you need to compute the same features from your gold price data:
See the training notebooks for the complete add_features_adaptive function.
Based on holdout testing:
See the confusion matrix, ROC curve, and feature importance plots in the repository.
Models compared: Gradient Boosting, XGBoost, LightGBM
For questions or issues, please open an issue on this repository.
MIT License