Downloads · 30 days
13
28% of all-time downloads
Volko76/stock-prediction-lstm
stock-prediction-lstm is a machine learning model from Volko76. 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 pytorch. The card lists the license as mit.
Ce modèle utilise un réseau LSTM (Long Short-Term Memory) pour prédire le rendement des actions à 7 jours.
Downloads · 30 days
13
28% of all-time downloads
All-time downloads
47
Public
Repo size
857 KB
Likes
0
Public
Click a slice to open those files.
.pth857 KB · 99%
From the Hugging Face model README
Ce modèle utilise un réseau LSTM (Long Short-Term Memory) pour prédire le rendement des actions à 7 jours.
NVDA, AAPL, TSLA, BYD, TTE, PLTR, AMZN, GOOGL, MSFT, AMD, SMCI, SNOW
import torch
from huggingface_hub import hf_hub_download
import pickle
# Télécharger les fichiers
model_path = hf_hub_download(repo_id="Volko76/stock-prediction-lstm", filename="best_stock_model.pth")
scaler_path = hf_hub_download(repo_id="Volko76/stock-prediction-lstm", filename="scaler.pkl")
# Charger le scaler
with open(scaler_path, 'rb') as f:
scaler = pickle.load(f)
# Charger le modèle
# (Définissez d'abord la classe StockPredictor)
model = StockPredictor(input_size=8)
model.load_state_dict(torch.load(model_path))
model.eval()
⚠️ Ce modèle est fourni à des fins éducatives uniquement. Les prédictions ne constituent pas des conseils financiers. Investissez toujours de manière responsable et consultez un conseiller financier professionnel.
2025-10-10
Volko76