Downloads · 30 days
0
Srikanth-Karthi/ecommerce-spending-predictor
ecommerce-spending-predictor is a tabular regression model from Srikanth-Karthi. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for sklearn. The card lists the license as apache-2.0.
[](https://huggingface.co/Srikanth-Karthi/ecommerce-spending-predictor) [](https://huggingface.co/Srikanth-Karthi/ecommerce-spending-predictor) [](https://www.apache.org/licenses/LICENSE-2.0)
Downloads · 30 days
0
Access
Public
Updated Feb 7, 2026
Repo size
953 B
Likes
0
Public
Click a slice to open those files.
.md2.7 KB · 52%
From the Hugging Face model README
A Linear Regression model that predicts yearly customer spending based on user behavior metrics from an e-commerce platform.
| Feature | Description |
|---|---|
Avg. Session Length | Average session length in minutes |
Time on App | Time spent on mobile app in minutes |
Time on Website | Time spent on website in minutes |
Length of Membership | Years of membership |
Yearly Amount Spent - Total yearly spending in USD| Metric | Value |
|---|---|
| Mean Absolute Error (MAE) | 8.43 |
| Mean Squared Error (MSE) | 103.92 |
| Root Mean Squared Error (RMSE) | 10.19 |
from huggingface_hub import hf_hub_download
import joblib
# Download and load model
model_path = hf_hub_download(
repo_id="Srikanth-Karthi/ecommerce-spending-predictor",
filename="model.joblib"
)
model = joblib.load(model_path)
# Predict
features = [[33.0, 12.0, 37.0, 3.5]]
# [Avg Session Length, Time on App, Time on Website, Membership Years]
prediction = model.predict(features)
print(f"Predicted Yearly Spending: ${prediction[0]:.2f}")
@misc{ecommerce-spending-predictor,
author = {Srikanth-Karthi},
title = {E-commerce Spending Predictor},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/Srikanth-Karthi/ecommerce-spending-predictor}
}