Downloads · 30 days
12
16% of all-time downloads
Shoriful025/Multi-Series-Financial-Trend-Predictor
Multi-Series-Financial-Trend-Predictor is a time series forecasting model from Shoriful025. Use it for the time series forecasting task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
EcomSalesTrendPredictor is a Time Series Transformer model designed for multivariate forecasting of e-commerce sales performance metrics. Specifically, it is trained to predict future RevenueUSD and UnitsSold (implici…
Downloads · 30 days
12
16% of all-time downloads
All-time downloads
77
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md4.4 KB · 67%
From the Hugging Face model README
EcomSalesTrendPredictor is a Time Series Transformer model designed for multivariate forecasting of e-commerce sales performance metrics. Specifically, it is trained to predict future Revenue_USD and UnitsSold (implicitly handled as separate series during training, or focused on one primary series like Revenue_USD as input_size=1 for simplicity) for multiple product SKUs across various regions.
The model incorporates numerous real-world contextual features, including static (e.g., product category, region) and dynamic (e.g., promotion status, season, inventory level) variables, making it highly robust for complex supply chain and financial planning tasks.
This model utilizes the Time Series Transformer (TST) architecture, which is state-of-the-art for sequence modeling tasks due to its use of self-attention mechanisms.
TimeSeriesTransformerModel (from HuggingFace's transformers/pytorch-forecasting implementation).Revenue_USD or UnitsSold).context_length of 30 days of historical data to predict the next prediction_length of 7 days.InventoryRiskScore) or excess inventory.To use the model for forecasting (requires a compatible time series library like pytorch-forecasting):
import pandas as pd
from transformers import AutoModel
from pytorch_forecasting import TimeSeriesDataSet, DeepAR
# NOTE: Actual inference with TST requires full PyTorch Forecasting setup.
# This example illustrates the data preparation steps.
model_name = "your-username/EcomSalesTrendPredictor" # Replace with actual HuggingFace path
# model = AutoModel.from_pretrained(model_name)
# Example historical data for one series (truncated for simplicity)
data = {
'time_idx': [1, 2, 3, 4, 5],
'target': [34995.0, 3600.0, 937.5, 18750.0, 2700.0],
'series': ['EL-LAP-001'] * 5,
'Region': ['North America'] * 5,
'ProductCategory': ['Electronics'] * 5,
'UnitsSold': [45, 180, 75, 15, 90],
'Inventory_Level': [120, 500, 90, 40, 300],
'PromotionApplied': [0, 1, 0, 0, 1]
}
df = pd.DataFrame(data)
# The loaded model object expects a TimeSeriesDataSet object for inference.
# The TST is highly dependent on the correct feature schema defined in its config.
print(f"Model configured for a prediction length of {model_config.prediction_length} days.")
print("Inference requires pre-processing the data into a TimeSeriesDataSet format.")