Comment on page
Two distinct formats of submission are accepted in this competition:
- Python Notebook (.ipynb)
- Python Script (.py)
This notebook is an example of a basic submission. It also covers how to set up and get access to the datasets:
We highly recommend going through this notebook to understand the setup and gain familiarity with the submission process.
click in reveal the to access your secure token and setup command
Copy and paste the commands under the "reveal the command" overlay in your notebook to be able to access the data.
Here is a quick description of each command:
# Installs the crunch library in your workspace.
%pip install crunch-cli --upgrade
# To use the library, import the crunch package and instantiate it to be able to access its functionality.
# You can do that using the following lines:
crunch = crunch.load_notebook(__name__)
# Authenticates your user, downloads your project workspace, and enables your access to the data
!crunch setup <username> --token <token>
# moves to the created working directory
Note that the provided token acts as an authentication mechanism and has a duration of three minutes, after which it will become obsolete.
Go to https://adialab.crunchdao.com/submit and click on "reveal the command" button to access the commands that will set up your workspace. Execute the commands in a terminal, in a working directory of your choice.
click in reveal the command to access your secure token and setup command
The website generates new tokens every minute, and each token can only be used once within a 3-minute timeframe.
This prevents any issues if your token is accidentally shared because it will likely have already been used or expired.
This token allows the CLI to download data and submit it on your behalf.