SimpleRegression / README.md
Udyan's picture
Update README.md
81678dd verified
---
license: mit
language: en
pipeline_tag: tabular-regression
tags:
- regression
- sklearn
- demo
- active-users
---
# ๐Ÿ“Š Active Users Prediction Model (Simple Regression)
## ๐Ÿง  Overview
This project demonstrates a simple regression-based approach to estimate and predict active users in a Hugging Face Space.
Since Hugging Face does not provide direct access to real-time active user metrics, this model uses request counts as a proxy signal and applies a regression model to estimate user activity trends.
---
## ๐Ÿš€ Features
- Tracks incoming requests as a proxy for user activity
- Logs usage data over time
- Trains a Linear Regression model on historical data
- Predicts current active users based on timestamp
---
## ๐Ÿ—๏ธ How It Works
1. Each user interaction increases a counter
2. Data is stored in a CSV file (`usage.csv`)
3. The model is trained on:
- Time (timestamp)
- Active user count
4. The model predicts active users for the current time
---
## ๐Ÿ“‚ Project Structure
---
## โš™๏ธ Model Details
- **Model Type:** Linear Regression
- **Library:** scikit-learn
- **Input Feature:** Timestamp
- **Output:** Estimated Active Users
---
## ๐Ÿ“ˆ Example Output
---
## โš ๏ธ Limitations
- This is an approximation, not real user tracking
- Counts requests, not unique users
- No session or IP-based filtering
- Model retrains on each request (not optimized)
---
## ๐Ÿ”ฎ Future Improvements
- Use a database instead of CSV
- Track unique users via sessions/IP
- Add time-based features (hour, day)
- Use advanced models (Random Forest, LSTM)
- Deploy with AWS for scalability
---
## ๐Ÿง‘โ€๐Ÿ’ป Author
Udyan Trivedi
---
## ๐Ÿ“œ License
MIT License