Downloads · 30 days
63
19% of all-time downloads
kingzarckier/predictionFx
predictionFx is a machine learning model from kingzarckier. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model predicts XAU/USD price movements using LSTM.
Downloads · 30 days
63
19% of all-time downloads
All-time downloads
326
Public
Repo size
1.4 MB
Likes
0
Public
Click a slice to open those files.
.bin206 KB · 50%
From the Hugging Face model README
This model predicts XAU/USD price movements using LSTM.
import torch
import pickle
from your_model_file import ForexLSTM
# Load model
model = ForexLSTM(**config)
model.load_state_dict(torch.load('model.pth'))
model.eval()
# Load scaler
with open('scaler.pkl', 'rb') as f:
scaler = pickle.load(f)
# Make prediction
# scaled_input = scaler.transform(your_input)
# prediction = model(torch.tensor(scaled_input).unsqueeze(0))
# prediction = scaler.inverse_transform(prediction.detach().numpy())