Downloads · 30 days
0
Soumyanation/price-forecast-model
price-forecast-model is a machine learning model from Soumyanation. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Stock Price Forecasting Model 📈 Model Description
Downloads · 30 days
0
Access
Public
Updated Aug 31, 2025
Repo size
211 KB
Likes
0
Public
Click a slice to open those files.
.pth210 KB · 98%
From the Hugging Face model README
Stock Price Forecasting Model 📈 Model Description
This model predicts future stock prices based on historical time-series data using LSTM (Long Short-Term Memory) networks. It is trained on publicly available stock price datasets and aims to assist in forecasting stock market trends.
Framework: TensorFlow / PyTorch
Model Type: LSTM-based Recurrent Neural Network
Task: Time-Series Forecasting
Input: Historical stock prices (Open, High, Low, Close, Volume)
Output: Next-day (or multi-step) stock price predictions
Intended Use
For educational and research purposes in financial forecasting.
Not intended for actual financial investment advice 🚫💸.
How to Use Install dependencies pip install torch numpy pandas matplotlib
Example Usage import torch import numpy as np import pandas as pd from model import StockPricePredictor # <- adjust to your class name
model = StockPricePredictor() model.load_state_dict(torch.load("stock_price_model.pt", map_location="cpu")) model.eval()
example_input = torch.randn(1, 60, 5) # batch_size=1, sequence_length=60, features=5 with torch.no_grad(): prediction = model(example_input)
print("Predicted Next-Day Price:", prediction.item())
Training Details
Training Data: Historical stock datasets (e.g., Yahoo Finance, Kaggle datasets).
Epochs: 50
Optimizer: Adam
Loss Function: MSE (Mean Squared Error)
Evaluation
Metrics used: RMSE, MAE
Performance varies by dataset and stock ticker.