Downloads · 30 days
3
8% of all-time downloads
RamavathMohan/st-graphmamba-metrla
st-graphmamba-metrla is a machine learning model from RamavathMohan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This API uses the exact model architecture and preprocessing from the supplied mohan-trafficpredict.ipynb.
Downloads · 30 days
3
8% of all-time downloads
All-time downloads
36
Public
Repo size
58.7 MB
Likes
0
Public
Click a slice to open those files.
.h557 MB · 97%
From the Hugging Face model README
This API uses the exact model architecture and preprocessing from the supplied
mohan-trafficpredict.ipynb.
Place these beside api.py:
st_graphmamba_metrla.ptadj_METR-LA.pklMETR-LA.h5GET /health
GET /predict/latest
This takes the final 24 time steps from METR-LA.h5, applies the same
normalization and four time features used during training, and calls the
trained ST-GraphMamba model.
POST /predict
Example JSON:
{
"history": [
[65.1, 64.2, "... 207 values ..."],
"... 24 rows total ..."
]
}
The values must be raw speed values in mph in the same sensor-column order as the training METR-LA file.
POST /predict/file
Upload a CSV that resolves to exactly 24 x 207 numeric values.
pip install -r requirements.txt
uvicorn api:app --host 0.0.0.0 --port 8000
Then open:
http://localhost:8000/docs
The Static Hugging Face Space cannot execute this Python/PyTorch API.
Deploy this API to a Python-capable service, then set the Static Space
INFERENCE_URL to the public /predict endpoint.