This repository is for challenge organizers to organize a challenge on Codabench.
This repository has two competition bundles:
- Results submission only competition (without ingestion program)
- Code submission competition (with ingestion program)
Code Submission Challenge
Results Submission Challenge
- Understanding the Starting Kit
- Understanding the Compatition Bundle
- Instructions about datasets
- How to create a challenge on Codabench?
- How to upload datasets on Codabench?
- How to create a task on Codabench?
- How to change a task in a competition?
The starting kit consists of the following directories and files:
-
ingestion_program
This directory consists of the following files:data_io.py: contains functions to load the dataingestion.py: responsible for loading, running the model with the input data and to save the results in the results directorymetadata: a file required to run the code on Codabench
-
scoring_program
This directory consists of the following files:metric.txt: a text file which consists of the name of the metric of evaluationsolution.py: to load only the solutions from the input datascore.py: responsible to compute score from the predictions made byingestion.pyand ground truths fromsolution.pylibscores.py: consists of pre-defined metricsmy_metric.py: a file in which you can define your own custom metric or use any metric from a library e.g. scikit-learnmetadata: a file required to run the code on Codabench
-
scoring_output
This directory consists ofscores.htmlandscores.txtfiles. These files are used to store scores from scoring program and to load scores to the leader board -
sample_data
This directory contains the sample data (a subset of Dataset 0) for the challenge. -
sample_code_submission
This directory consists ofmodel.pyfile which has a Model Class with different functions. You have to change this file but the names of the functions should be the same. You can also keep a pre-trained model in this directory which could be used as a pre-trained model when you submit a code submission. -
sample_result_submission
This directory containstrain.predictandtest.predictfiles which are used to calculate the score. -
logo.png
This image is the logo for your competition on Codabench website. -
README.ipynb
This is python notebook which gives the participants a tour from data loading to code submission on Codabench.
starting_kit in this repository
The competition_bundle consists of all the files and folders from starting_kit along with the following additional files.
competition.yaml
This file consists of important details and settings of the competition which include:
- title
- description
- image
- end date
- documentation pages
- phases
- tasks
- leaderboard
See the example competition.yaml file in the competition_bundle
documentation pages
There are several documentation pages to describe the competition:
- overview.md
- evaluation.md
- data.md
- terms.md
competition_bundle in this repository
The challenge consists of two phases:
Phase 1(Feedback Phase)Phase 2(Final Phase)
This challenge is designed for a triplet of datasets:
Dataset 0(to be used aspublic_data)Dataset 1(to be used inPhase 1)Dataset 2(be used inPhase 2)
datasets in this repository
Follow the steps below to create a challenge on Codabench.
git clone https://github.com/ihsaan-ullah/create_a_codabench_challenge.git
- Go the repository
cd create_a_codabench_challenge
- Zip the competition bundle
zip -r competition_bundle.zip competition_bundle/*
- Create an account on the Codabench Website: https://www.codabench.org/accounts/signup
- Login into your account : https://www.codabench.org/accounts/login/
-
Choose the
competition_bundle.zipcreated in Step 2
You have to make changes according to the specifications and goals of your challenge before uploading it to Codabench.
Follow the steps below to upload Public Data (Dataset 0) and Input/Reference Data (Dataset 1 and Dataset 2) to Codabench
-
Fill the form by entering the following details:
- Name
- Description
- Select type
- Ingestion Program
- Input Data
- Public Data
- Reference Data
- Scoring Program
- Starting Kit
- Submission
- Select the zipped dataset and click upload
- Click
Uploadbutton to save changes.
- For Public Data (
Dataset 0) choose the type Public Data - For Input Data (
Dataset 1,Dataset 2) choose Input Data - Choose other types for
scoring_program,ingestion_programorstarting_kit.
-
Fill the form by entering Name and Description in Details tab and selecting Scoring Program, Ingestion Program, Reference Data, and Input Data from the uploaded Datasets.

- Click
Createbutton to save changes.
Follow the steps below to change a task in your competition.
-
Click the
Editbutton in front of the competition you want to edit
-
Click the
Editbutton in front of the phase for which you want to change the task
-
Click the tasks dropdown to select a new task. You can remove existing task by clickin the cross button

-
Click the
Savebutton at the bottom of the page to save changes.
In case of any confusion, contact by email : ihsan2131@gmail.com
Report any inconsistencies or bugs related to Codabench Platform on Github: https://github.com/codalab/codabench/issues













