DavidTorro/gdg-uam-ml-contest-2026
About
1D CNN for 8-class multichannel time-series classification, optimized for CPU inference with ONNX Runtime and Numba.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGDG UAM ML Contest 2026
My individual entry for the GDG UAM ML Contest 2026. The task is to classify a four-channel, 256-step time series into one of eight classes. The official harness calls predict on one sample at a time and scores both accuracy and throughput.
Model
model.py loads models/exp033.sesgo.onnx by default. It is a 1D CNN exported to ONNX, including the class-6 logit adjustment in the weight file. Inference uses ONNX Runtime on one CPU thread. Numba compiles preprocessing during setup; reusable buffers and ONNX Runtime I/O Binding reduce per-sample overhead. The default inference path does not require PyTorch or training data.
The approach note explains how we chose and prepared the model.
Demo results
A short Colab timing of 0.1064 ms per prediction suggested roughly 142 points if sustained. The full 60 s harness run averaged 0.1473 ms across 407,260 predictions and scored 120.576 on the repeated demo. With the same sample mix, the score scales roughly with the square root of the number of answers; the lower sustained throughput explains the difference. These runs reuse the same 400 public samples.
Submission files
The official harness provides competition_api.py; it is not part of this repository.
Test from a fresh clone
Choose your environment below. The local commands need Git, Python 3.10 or newer, and curl. Run each block in order from a new directory.
macOS · Terminal
1. Clone the submission and official materials
mkdir gdg-uam-submission-check
cd gdg-uam-submission-check
git clone https://github.com/DavidTorro/gdg-uam-ml-contest-2026.git submission-check
git clone https://github.com/GDG-UAM/ml-contest-materials.git
2. Create the Python environment and install inference dependencies
python3 -m venv .venv
.venv/bin/python -m pip install -r submission-check/requirements.txt
3. Download the public demo and run the official harness
curl -fL --create-dirs -o ml-contest-materials/data/test_demo.npz \
https://github.com/GDG-UAM/ml-contest-materials/releases/latest/download/test_demo.npz
cd ml-contest-materials
../.venv/bin/python harness.py evaluate --model ../submission-check/model.py \
--source file:data/test_demo.npz --runs 1
Linux · Terminal
1. Clone the submission and official materials
mkdir gdg-uam-submission-check
cd gdg-uam-submission-check
git clone https://github.com/DavidTorro/gdg-uam-ml-contest-2026.git submission-check
git clone https://github.com/GDG-UAM/ml-contest-materials.git
2. Create the Python environment and install inference dependencies
python3 -m venv .venv
.venv/bin/python -m pip install -r submission-check/requirements.txt
3. Download the public demo and run the official harness
curl -fL --create-dirs -o ml-contest-materials/data/test_demo.npz \
https://github.com/GDG-UAM/ml-contest-materials/releases/latest/download/test_demo.npz
cd ml-contest-materials
../.venv/bin/python harness.py evaluate --model ../submission-check/model.py \
--source file:data/test_demo.npz --runs 1
Windows · PowerShell
1. Clone the submission and official materials
New-Item -ItemType Directory gdg-uam-submission-check
Set-Location gdg-uam-submission-check
git clone https://github.com/DavidTorro/gdg-uam-ml-contest-2026.git submission-check
git clone https://github.com/GDG-UAM/ml-contest-materials.git
2. Create the Python environment and install inference dependencies
py -3 -m venv .venv
& .\.venv\Scripts\python.exe -m pip install -r .\submission-check\requirements.txt
3. Download the public demo and run the official harness
curl.exe -fL --create-dirs -o ml-contest-materials\data\test_demo.npz `
https://github.com/GDG-UAM/ml-contest-materials/releases/latest/download/test_demo.npz
Set-Location ml-contest-materials
& ..\.venv\Scripts\python.exe harness.py evaluate --model ..\submission-check\model.py `
--source file:data/test_demo.npz --runs 1
The public demo should report 338 correct predictions out of 400 (84.5%). Runtime and latency depend on the computer.
Google Colab · no local setup
The English verification notebook runs the same check in a Colab CPU runtime. It clones both public repositories, installs the pinned inference dependencies, verifies the demo download by SHA-256, and calls the official harness.
- Open the notebook and connect to a fresh CPU runtime. If the runtime already contains a previous clone, choose Runtime → Disconnect and delete runtime, then reconnect.
- Choose Runtime → Run all. Colab runs the cells in order; the dependency installation and model setup can take a few minutes.
- Check the final ✅ PASS · public demo table: 400 samples, 338 correct predictions, and a demo score of approximately 3.778906. The displayed commit is the revision cloned during that run; latency can vary.
The notebook only downloads the public demo and does not train the model.
License
The original source code, notebooks, documentation, and SVG assets in this repository are available under the MIT License. The ONNX weight at models/exp033.sesgo.onnx is excluded: it is provided for evaluation of this contest entry, and no separate license for reuse is granted.
Explore related projects
Loading…