Repository navigation
ENH switch the template to a benchopt-powered competition scaffold - #10
Merged
Merged
Conversation
tomMoral
commented
Oct 30, 2026
…y, bundle copies it to solution/
…undled skills, data in phase input_data, cuttable course section
…y the scoring program, codabench-benchopt{,-gpu} base images
…save_final_results
… public score back in evaluate_result
…ng the phase config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).Realbuilds its splits inDataset.prepare()(benchopt prepare benchmark -d Real), with scikit-learn's breast-cancer data as a stand-in.Simulatedreturns the same keys for smoke tests and CI.CompetSolverdefines the submission contract, andDummyis the floor baseline.solution/submission.py) that trains on the platform.benchopt runon the submission. Scoring maps the objective's columns to leaderboard keys and fails if one is missing.phases/main/input_data/config.yamlis a native benchopt run config plus the leaderboard column map.local_config.ymldrives local runs:benchopt prepare --config local_config.ymlandbenchopt 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).tools/setup_data.pyis removed. Data preparation isDataset.prepare().benchopt test, a smoke run, an end-to-end bundle → ingestion → scoring run onSimulated, and a Docker build.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 onSimulatedand onReal. The random forest gets 0.947 public / 0.921 private onReal, against 0.675 / 0.596 for the floor. The Docker image was not built locally.Suggest tagging the current
mainasclassic-v1before merging, to keep the previous template reachable.🤖 Generated with Claude Code
https://claude.ai/code/session_01BYZ1pURFPu97pV3LQ2qMVF