Skip to content

ENH switch the template to a benchopt-powered competition scaffold - #10

Merged
tomMoral merged 13 commits into
benchopt:mainfrom
tomMoral:benchopt-scaffold
Nov 4, 2026
Merged

tomMoral merged 13 commits into
benchopt:mainfrom
tomMoral:benchopt-scaffold

Conversation

@tomMoral

@tomMoral tomMoral commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Replaces the template with a benchopt-powered competition scaffold. The benchmark is the competition: participants run locally, with benchopt run, exactly the code the Codabench server runs. Ingestion and scoring are thin wrappers around it.

What changes

  • benchmark/ holds the task. The objective computes the metric (accuracy on public and private test sets). Real builds its splits in Dataset.prepare() (benchopt prepare benchmark -d Real), with scikit-learn's breast-cancer data as a stand-in. Simulated returns the same keys for smoke tests and CI. CompetSolver defines the submission contract, and Dummy is the floor baseline.
  • Submission is a benchopt solver (solution/submission.py) that trains on the platform.
  • Ingestion runs benchopt run on the submission. Scoring maps the objective's columns to leaderboard keys and fails if one is missing.
  • Phase: a single phase with a hidden private column. phases/main/input_data/config.yaml is a native benchopt run config plus the leaderboard column map.
  • local_config.yml drives local runs: benchopt prepare --config local_config.yml and benchopt run --config local_config.yml. It mirrors the phase config (dataset, seed, folds) and adds the solvers to run. A command-line option overrides it, e.g. -d Simulated. The README, the Participate page, the sample solver, the starting kit and CI use it. With the phase seed, the local run gives the same scores as the bundle's ingestion and scoring (0.950 CV / 0.956 public / 0.935 private for the random forest).
  • Docker image bakes in the benchmark. The data is staged on the worker, so neither is in the bundle.
  • tools/setup_data.py is removed. Data preparation is Dataset.prepare().
  • CI: lint, benchopt test, a smoke run, an end-to-end bundle → ingestion → scoring run on Simulated, and a Docker build.
  • README has a step-by-step checklist to adapt the template. The pages and the starting-kit notebook are updated to the new contract.
  • Fixes the old leaderboard, which sorted accuracy ascending.

Verified locally

From a clean state: flake8, benchopt test (9 passed, 4 skipped for the real dataset), the smoke run, and the end-to-end bundle run on Simulated and on Real. The random forest gets 0.947 public / 0.921 private on Real, against 0.675 / 0.596 for the floor. The Docker image was not built locally.

Suggest tagging the current main as classic-v1 before merging, to keep the previous template reachable.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BYZ1pURFPu97pV3LQ2qMVF

Comment thread benchmark/solvers/random-forest.py Resolved
Comment thread template_starting_kit.ipynb Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread competition.yaml Resolved
Comment thread benchmark/datasets/real.py Resolved
Comment thread ingestion_program/ingestion.py Resolved
Comment thread .gitignore Resolved
Comment thread requirements.txt Resolved
Comment thread README.md Resolved
@tomMoral
tomMoral merged commit 35212a3 into benchopt:main Nov 4, 2026
2 checks passed
@tomMoral
tomMoral deleted the benchopt-scaffold branch November 4, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant