Skip to content

rhulucas/Gold-Price-Prediction-LSTM-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gold Price Prediction with LSTM It predicts daily gold prices using a 2-layer LSTM model in PyTorch.

Overview Data: MacroTrends gold prices (1968–2024), repo includes only sample (2023–2024). Preprocessing: MinMax scaling, 60-day input windows. Model: LSTM with dropout, trained with Adam + MSE. Output: training loss curve + predicted vs. actual gold prices.

Setup: python3 -m venv myenv, source myenv/bin/activate, pip install -r requirements.txt

Run: python train-predict-daily-gold-prices.py, python pre_test.py

Figure_1 Screenshot 2025-10-02 at 2 37 39 AM Screenshot 2025-10-02 at 2 38 04 AM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages