Downloads · 30 days
0
Yukin3/TPnet-baseline
TPnet-baseline is a tabular classification model from Yukin3. Use it for the tabular classification 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 mit.
TPnet-baseline is a Random Forest classifier trained on smart mobility and traffic features to predict traffic congestion levels (Low, Medium, High) in urban environments.
Downloads · 30 days
0
Access
Public
Updated Apr 30, 2025
Repo size
7.7 MB
Likes
0
Public
Click a slice to open those files.
.pkl7.7 MB · 99%
From the Hugging Face model README
TPnet-baseline is a Random Forest classifier trained on smart mobility and traffic features to predict traffic congestion levels (Low, Medium, High) in urban environments.
High, Medium, Low traffic congestion| Metric | Value |
|---|---|
| Accuracy | 99.9% |
| F1 Score | 0.999 |
| Model Size | ~1.2MB |
Confusion matrix and full report are available in the repository.
import pickle
with open("traffic_predictor_rf.pkl", "rb") as f:
model = pickle.load(f)
y_pred = model.predict(X_test) # where X_test is a [n_samples, 20] array
Does not account for live data
Designed for offline batch inference
Assumes all 20 features are properly preprocessed and scaled