Downloads · 30 days
0
cintia-shinoda/sp-transit-node-classifier
sp-transit-node-classifier is a tabular classification model from cintia-shinoda. 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.
Classifies bus stops in São Paulo's transit network as Hub, Intermediate, or Peripheral based on graph features and geographic coordinates.
Downloads · 30 days
0
Access
Public
Updated Apr 3, 2026
Repo size
2.1 MB
Likes
0
Public
Click a slice to open those files.
.joblib2.1 MB · 100%
From the Hugging Face model README
Classifies bus stops in São Paulo's transit network as Hub, Intermediate, or Peripheral based on graph features and geographic coordinates.
The goal: predict betweenness centrality class without computing betweenness itself (which is computationally expensive for large networks).
import joblib
import numpy as np
from huggingface_hub import hf_hub_download
path = hf_hub_download(
repo_id="cintia-shinoda/sp-transit-node-classifier",
filename="model.joblib",
)
model = joblib.load(path)
# Input: [degree, degree_centrality, closeness_centrality, lat, lon]
node = np.array([[8, 0.00036, 0.018, -23.55, -46.63]])
pred = model.predict(node)
# 0 = Peripheral, 1 = Intermediate, 2 = Hub
| Feature | Description |
|---|---|
| degree | Number of direct connections |
| degree_centrality | Normalized degree centrality |
| closeness_centrality | Closeness centrality |
| lat | Latitude |
| lon | Longitude |
| Metric | Value |
|---|---|
| F1 Macro (test) | 0.59 |
| Accuracy (test) | 0.68 |
| F1 Macro (5-fold CV) | 0.43 |
| Feature | Importance |
|---|---|
| lat | 0.2793 |
| lon | 0.2604 |
| closeness_centrality | 0.2566 |
| degree | 0.1061 |
| degree_centrality | 0.0976 |
Geographic position (lat/lon) is the strongest predictor of hub status, confirming that high-centrality stops concentrate in specific corridors of São Paulo.
SP Transit Network Centrality — 21,892 bus stops with graph centrality metrics.
@misc{shinoda2026sp-classifier,
author = {Cintia Shinoda},
title = {SP Transit Node Classifier},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/cintia-shinoda/sp-transit-node-classifier}
}