Just starting out with Python? Want to make a TADPOLE leaderboard submission? This discussion is for you.
To assist with generating valid leaderboard submissions to TADPOLE Challenge, we have provided "helper scripts" in the
TADPOLE GitHub repository (currently under the
evaluation folder). Some scripts are written in
Python, some in MATLAB. (MATLAB is not free, but we hope that our MATLAB code will work with the free alternative
Octave, although we have not tested it.)
A key step in generating a leaderboard submission is having access to the leaderboard datasets LB1, LB2, and LB4, which are all subsets of TADPOLE dataset D1 (see
TADPOLE_D1_D2.csv from the TADPOLE data download). For this, you need to be able to run
makeLeaderboardDataset.py.
To help anyone who is just starting out with python, below is a sequence of steps that one of the TADPOLE organisers had to follow to generate the leaderboard datasets, using a Mac. We hope that they might be useful for users of other computers, and we encourage you to contribute to the discussion.
=== Example steps to generate TADPOLE Leaderboard Datasets on a Mac ===
2. Install a terminal application if you do not have one. (Macs come with one installed.)
3. Install python using the terminal. For this we first installed a free software package manager known as
Homebrew (Mac only):
4. Install extra dependencies:
5. Create a TADPOLE data folder and change into it:
mkdir TADPOLEData; cd TADPOLEData;
6. Download the TADPOLE code from GitHub
here and move it into the
TADPOLEData folder. If you have
Git installed, you can use the following command in a terminal:
7. Copy TADPOLE_D1_D2.csv into TADPOLEData/TADPOLE/ (the TADPOLE code folder downloaded from GitHub). For example, if TADPOLE_D1_D2.csv is in TADPOLEData, then this will work if you have been following the steps above:
cp TADPOLE_D1_D2.csv ./TADPOLE/
8. Change into the evaluation folder, where you can find
makeLeaderboardDataset.py:
8. Run the python script to generate the leaderboard datasets:
python3 makeLeaderboardDataset.py
If successful, you will find TADPOLE_LB1_LB2.csv and TADPOLE_LB4.csv in the TADPOLEData/TADPOLE/evaluation folder.
You are welcome to use this script as a starting point for generating your own submissions. If you happen to translate this into Python, or
R, et al., then please share your code with the TADPOLE Challenge Community (using this forum).
Thanks!