|
| 1 | +# Submissions, SubmissionStatuses, SubmissionBundles |
| 2 | +## What are Submissions? |
| 3 | + |
| 4 | +In Synapse, a Submission is your entry to a challenge or evaluation queue. When you participate in a computational challenge or collaborative project, you submit your work (such as predictions, models, or analysis results) as a Submission to be evaluated and scored. |
| 5 | + |
| 6 | +## Key Concepts |
| 7 | + |
| 8 | +Before working with Submissions, it's helpful to understand how they fit into Synapse: |
| 9 | + |
| 10 | +- **Entity**: Your actual work stored in Synapse (like a File containing predictions or a Docker image with your model) |
| 11 | +- **Evaluation**: A queue that accepts and organizes submissions for a specific challenge or project |
| 12 | +- **Submission**: The object associated with submitting your Entity to an Evaluation queue, creating a record that can be tracked and scored |
| 13 | + |
| 14 | +## How Submissions Work |
| 15 | + |
| 16 | +When you submit an Entity to an Evaluation: |
| 17 | +- The Submission creates an immutable record linking your Entity to that Evaluation |
| 18 | +- The Evaluation owns this Submission record (not you as the submitter) |
| 19 | +- Organizers can add scores and feedback through a SubmissionStatus object |
| 20 | +- You can track your Submissions and view their statuses |
| 21 | + |
| 22 | +## Related Objects |
| 23 | + |
| 24 | +The Python client provides three object types for working with Submissions: |
| 25 | + |
| 26 | +- **Submission**: Represents your entry in an Evaluation queue |
| 27 | +- **SubmissionStatus**: Tracks scoring information and feedback for a Submission |
| 28 | +- **SubmissionBundle**: Combines a Submission and its SubmissionStatus for convenient access |
| 29 | + |
| 30 | +## What You'll Learn |
| 31 | + |
| 32 | +This tutorial covers two perspectives: |
| 33 | + |
| 34 | +1. **Participating in challenges**: Making and tracking your submissions |
| 35 | +1. **Organizing challenges**: Scoring and managing submissions from participants |
| 36 | + |
| 37 | +## Tutorial Purpose |
| 38 | + |
| 39 | +In this tutorial: |
| 40 | + |
| 41 | +As a participant of a Synapse challenge, you will |
| 42 | + |
| 43 | +1. Make a submission to an existing evaluation queue on Synapse |
| 44 | +1. Fetch your existing submission |
| 45 | +1. Count your submissions |
| 46 | +1. Fetch all of your submissions from an existing evaluation queue on Synapse |
| 47 | +1. Check the status of your submission |
| 48 | +1. Cancel your submission |
| 49 | + |
| 50 | +As an organizer of a Synapse challenge, you will |
| 51 | + |
| 52 | +1. Annotate a submission to score it |
| 53 | +1. Batch-update submission statuses |
| 54 | +1. Fetch the submission bundle for a given submission |
| 55 | +1. Allow cancellation of submissions |
| 56 | +1. Delete submissions |
| 57 | + |
| 58 | +## Prerequisites |
| 59 | +* You have completed the [Evaluation](./evaluation.md) tutorial, or have an existing Evaluation on Synapse to work from |
| 60 | +* You have an existing entity with which to make a submission (can be a [File](./file.md) or Docker Repository) |
| 61 | +* You have the correct permissions on the Evaluation queue for your desired tutorial section (participant or organizer) |
| 62 | + |
| 63 | +## 1. Participating in a Synapse challenge |
| 64 | + |
| 65 | +### 1. Make a submission to an existing evaluation queue on Synapse |
| 66 | + |
| 67 | +```python |
| 68 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!lines=32-54} |
| 69 | +``` |
| 70 | + |
| 71 | +### 2. Fetch your existing submission |
| 72 | + |
| 73 | +```python |
| 74 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!lines=56-71} |
| 75 | +``` |
| 76 | + |
| 77 | +### 3. Count your submissions |
| 78 | + |
| 79 | +```python |
| 80 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!lines=72-88} |
| 81 | +``` |
| 82 | + |
| 83 | +### 4. Fetch all of your submissions from an existing evaluation queue on Synapse |
| 84 | + |
| 85 | +```python |
| 86 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!lines=90-101} |
| 87 | +``` |
| 88 | + |
| 89 | +### 5. Check the status of your submission |
| 90 | + |
| 91 | +```python |
| 92 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!lines=103-125} |
| 93 | +``` |
| 94 | + |
| 95 | +### 6. Cancel your submission |
| 96 | + |
| 97 | +```python |
| 98 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!lines=126-143} |
| 99 | +``` |
| 100 | + |
| 101 | +## 2. Organizing a Synapse challenge |
| 102 | + |
| 103 | +### 1. Annotate a submission to score it |
| 104 | + |
| 105 | +```python |
| 106 | +{!docs/tutorials/python/tutorial_scripts/submission_organizer.py!lines=33-60} |
| 107 | +``` |
| 108 | + |
| 109 | +### 2. Batch-update submission statuses |
| 110 | + |
| 111 | +```python |
| 112 | +{!docs/tutorials/python/tutorial_scripts/submission_organizer.py!lines=62-99} |
| 113 | +``` |
| 114 | + |
| 115 | +### 3. Fetch the submission bundle for a given submission |
| 116 | + |
| 117 | +```python |
| 118 | +{!docs/tutorials/python/tutorial_scripts/submission_organizer.py!lines=101-136} |
| 119 | +``` |
| 120 | + |
| 121 | +### 4. Allow cancellation of submissions |
| 122 | + |
| 123 | +```python |
| 124 | +{!docs/tutorials/python/tutorial_scripts/submission_organizer.py!lines=138-177} |
| 125 | +``` |
| 126 | + |
| 127 | +### 5. Delete submissions |
| 128 | + |
| 129 | +```python |
| 130 | +{!docs/tutorials/python/tutorial_scripts/submission_organizer.py!lines=179-209} |
| 131 | +``` |
| 132 | + |
| 133 | +## Source code for this tutorial |
| 134 | + |
| 135 | +<details class="quote"> |
| 136 | + <summary>Click to show me (source code for Participant)</summary> |
| 137 | + |
| 138 | +```python |
| 139 | +{!docs/tutorials/python/tutorial_scripts/submission_participant.py!} |
| 140 | +``` |
| 141 | +</details> |
| 142 | + |
| 143 | +<details class="quote"> |
| 144 | + <summary>Click to show me (source code for Organizer)</summary> |
| 145 | + |
| 146 | +```python |
| 147 | +{!docs/tutorials/python/tutorial_scripts/submission_organizer.py!} |
| 148 | +``` |
| 149 | +</details> |
| 150 | + |
| 151 | +## References |
| 152 | +- [Evaluation][synapseclient.models.Evaluation] |
| 153 | +- [File][synapseclient.models.File] |
| 154 | +- [Submission][synapseclient.models.Submission] |
| 155 | +- [SubmissionStatus][synapseclient.models.SubmissionStatus] |
| 156 | +- [SubmissionBundle][synapseclient.models.SubmissionBundle] |
| 157 | +- [syn.login][synapseclient.Synapse.login] |
0 commit comments