Downloads · 30 days
6
14% of all-time downloads
Tasfiya025/CryptoTrendPredictor_LSTM
CryptoTrendPredictor_LSTM is a machine learning model from Tasfiya025. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository hosts a custom Long Short-Term Memory (LSTM) recurrent neural network designed for single-step time-series prediction of cryptocurrency prices. Specifically, this model is trained to predict the normal…
Downloads · 30 days
6
14% of all-time downloads
All-time downloads
44
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.4 KB · 53%
From the Hugging Face model README
This repository hosts a custom Long Short-Term Memory (LSTM) recurrent neural network designed for single-step time-series prediction of cryptocurrency prices. Specifically, this model is trained to predict the normalized closing price of Bitcoin (BTC) for the next day, utilizing a diverse set of technical indicators and on-chain metrics.
The model implements a stacked LSTM architecture, which is highly effective for capturing long-term dependencies in sequential data like price time series.
input_size=10): 10 features including price, volume, technical indicators (RSI, MACD), market correlation, and external factors (Google Trends, Social Media Sentiment).sequence_length=60): The model takes the past 60 time steps (days) of feature data as input to make one prediction.hidden_size=128): 128 units per LSTM layer.The model expects a numpy array/tensor of shape (batch_size, sequence_length, input_size). The input features must be normalized using the same min/max scaling applied during training.
import numpy as np
# Assuming the model is loaded from a framework like PyTorch or TensorFlow
# and inference data is ready and pre-processed.
# Replace with actual data (60 days of 10 features, normalized)
input_data = np.random.rand(1, 60, 10).astype(np.float32)
# prediction = model(input_data)
# print(f"Normalized Prediction: {prediction.item()}")
# Inverse transform the prediction to get the actual price forecast
# forecasted_price = scaler.inverse_transform(prediction)
# print(f"Forecasted BTC Price: ${forecasted_price.item():.2f}")