docs: expand source-safe public dataset documentation
Browse files- dataset_card.md +185 -85
dataset_card.md
CHANGED
|
@@ -1,85 +1,185 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: MindRL Challenge Public Dataset
|
| 3 |
+
task_categories:
|
| 4 |
+
- reinforcement-learning
|
| 5 |
+
tags:
|
| 6 |
+
- behavioral-modeling
|
| 7 |
+
- reward-learning
|
| 8 |
+
- bandit-task
|
| 9 |
+
- human-choice-prediction
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# MindRL Challenge Public Dataset
|
| 15 |
+
|
| 16 |
+
This repository contains the public training split for the MindRL Challenge, a human reward-learning modeling benchmark. The release is intentionally source-safe: it describes the task, data format, and intended use without identifying the original study, raw data source, article, repository, lab, institution, or participant pool.
|
| 17 |
+
|
| 18 |
+
## Intended use
|
| 19 |
+
|
| 20 |
+
Use this public split to develop, debug, and calibrate MindRL agents that predict human choices from trial history. Official challenge scoring uses additional private evaluation splits that are not part of this public release.
|
| 21 |
+
|
| 22 |
+
The modeling target is one-step-ahead behavioral prediction:
|
| 23 |
+
|
| 24 |
+
```text
|
| 25 |
+
P(action_t | context, history_1:t-1)
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
At prediction time, models should use only the trajectory context and previous trials. They should not use the current trial's action or reward, later trials from the same trajectory, hidden splits, or any external reconstruction of the raw data source.
|
| 29 |
+
|
| 30 |
+
## Task
|
| 31 |
+
|
| 32 |
+
- Task family: 4-arm drifting bandit / restless reward-learning.
|
| 33 |
+
- Action space: integers `0`, `1`, `2`, `3`.
|
| 34 |
+
- Observation history: previous choices, received rewards, response times when available, and anonymized episode metadata.
|
| 35 |
+
- Prediction target: the human participant's next action.
|
| 36 |
+
- Episode unit: each JSONL row is one anonymized trajectory.
|
| 37 |
+
- The reward associated with each action changes gradually over the episode, so useful models need to learn from recent outcomes while remaining responsive to change.
|
| 38 |
+
|
| 39 |
+
## Files
|
| 40 |
+
|
| 41 |
+
| File | Purpose |
|
| 42 |
+
| --- | --- |
|
| 43 |
+
| `public_train.jsonl` | Agent-facing public training trajectories. |
|
| 44 |
+
| `public_train_reward_schedules.jsonl` | Full option payoff schedules for released public episodes; useful for public-task analysis or generative simulation, but not part of the standard one-step-ahead observation history. |
|
| 45 |
+
| `schema.json` | JSON Schema for public trajectories. |
|
| 46 |
+
| `task_description.md` | Compact task description. |
|
| 47 |
+
| `README.md` / `dataset_card.md` | This dataset description. |
|
| 48 |
+
|
| 49 |
+
If a model uses the reward-schedule sidecar, that use should be disclosed in the method description or interpretation card. The official prediction API still evaluates one-step-ahead predictions from context and past observed trials.
|
| 50 |
+
|
| 51 |
+
## Public split statistics
|
| 52 |
+
|
| 53 |
+
These statistics describe `public_train.jsonl` only.
|
| 54 |
+
|
| 55 |
+
| Quantity | Value |
|
| 56 |
+
| --- | ---: |
|
| 57 |
+
| Trajectories | 2,678 |
|
| 58 |
+
| Anonymized subjects | 689 |
|
| 59 |
+
| Anonymized blocks / episodes | 2,678 |
|
| 60 |
+
| Total trials | 320,080 |
|
| 61 |
+
| Trajectory length, min / median / max | 108 / 120 / 120 |
|
| 62 |
+
| Reward range | 1.0 to 100.0 |
|
| 63 |
+
| Mean reward | 64.889 |
|
| 64 |
+
| Trials with response time | 308,803 |
|
| 65 |
+
|
| 66 |
+
Observed action counts:
|
| 67 |
+
|
| 68 |
+
| Action | Count |
|
| 69 |
+
| --- | ---: |
|
| 70 |
+
| `0` | 81,656 |
|
| 71 |
+
| `1` | 81,698 |
|
| 72 |
+
| `2` | 77,045 |
|
| 73 |
+
| `3` | 79,681 |
|
| 74 |
+
|
| 75 |
+
These counts should not be interpreted as the full challenge distribution.
|
| 76 |
+
|
| 77 |
+
## JSONL format
|
| 78 |
+
|
| 79 |
+
Each line in `public_train.jsonl` is one trajectory:
|
| 80 |
+
|
| 81 |
+
```json
|
| 82 |
+
{
|
| 83 |
+
"context": {
|
| 84 |
+
"task_id": "public_4arm_restless_bandit",
|
| 85 |
+
"task_family": "restless_bandit",
|
| 86 |
+
"subject_id": "sub_000001",
|
| 87 |
+
"trajectory_id": "traj_000001",
|
| 88 |
+
"num_options": 4,
|
| 89 |
+
"available_actions": [0, 1, 2, 3],
|
| 90 |
+
"option_features": null,
|
| 91 |
+
"task_description": "4-arm drifting bandit task",
|
| 92 |
+
"metadata": {"block_id": "block_000001"}
|
| 93 |
+
},
|
| 94 |
+
"trials": [
|
| 95 |
+
{"trial_index": 0, "action": 1, "reward": 72.0, "info": {"rt": 531.0}}
|
| 96 |
+
]
|
| 97 |
+
}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### Context fields
|
| 101 |
+
|
| 102 |
+
| Field | Meaning |
|
| 103 |
+
| --- | --- |
|
| 104 |
+
| `task_id` | Public task identifier: `public_4arm_restless_bandit`. |
|
| 105 |
+
| `task_family` | Coarse task family: `restless_bandit`. |
|
| 106 |
+
| `subject_id` | Anonymized subject label such as `sub_000001`; not an original participant id. |
|
| 107 |
+
| `trajectory_id` | Anonymized trajectory label such as `traj_000001`. |
|
| 108 |
+
| `num_options` | Number of available actions. |
|
| 109 |
+
| `available_actions` | Valid actions, encoded as integers `[0, 1, 2, 3]`. |
|
| 110 |
+
| `option_features` | Optional action-feature field; `null` in this release. |
|
| 111 |
+
| `task_description` | Short task description string. |
|
| 112 |
+
| `metadata.block_id` | Anonymized episode/block label; not the original block number. |
|
| 113 |
+
|
| 114 |
+
### Trial fields
|
| 115 |
+
|
| 116 |
+
| Field | Meaning |
|
| 117 |
+
| --- | --- |
|
| 118 |
+
| `trial_index` | Within-trajectory trial index after preprocessing. |
|
| 119 |
+
| `action` | Observed human action, encoded as `0`, `1`, `2`, or `3`. |
|
| 120 |
+
| `reward` | Scalar reward feedback received after the action. |
|
| 121 |
+
| `info.rt` | Response time when available. Some trials may have missing response time. |
|
| 122 |
+
|
| 123 |
+
## Loading examples
|
| 124 |
+
|
| 125 |
+
Download the public trajectory file:
|
| 126 |
+
|
| 127 |
+
```bash
|
| 128 |
+
huggingface-cli download mindrl-hub/mindrl-challenge-public public_train.jsonl --local-dir ./hf_cache/public
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
Load with Python JSONL:
|
| 132 |
+
|
| 133 |
+
```python
|
| 134 |
+
import json
|
| 135 |
+
from pathlib import Path
|
| 136 |
+
|
| 137 |
+
path = Path("hf_cache/public/public_train.jsonl")
|
| 138 |
+
with path.open("r", encoding="utf-8") as f:
|
| 139 |
+
first = json.loads(next(f))
|
| 140 |
+
|
| 141 |
+
print(first["context"]["available_actions"], len(first["trials"]))
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
Load with `datasets`:
|
| 145 |
+
|
| 146 |
+
```python
|
| 147 |
+
from datasets import load_dataset
|
| 148 |
+
|
| 149 |
+
ds = load_dataset(
|
| 150 |
+
"json",
|
| 151 |
+
data_files="https://huggingface.co/datasets/mindrl-hub/mindrl-challenge-public/resolve/main/public_train.jsonl",
|
| 152 |
+
split="train",
|
| 153 |
+
)
|
| 154 |
+
print(ds[0])
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
## Evaluation interface
|
| 158 |
+
|
| 159 |
+
The official evaluator calls an `Agent` sequentially:
|
| 160 |
+
|
| 161 |
+
1. `reset(context)` once at the start of a trajectory.
|
| 162 |
+
2. For each trial, call `predict(history)` using only previous trials.
|
| 163 |
+
3. Score the predicted action distribution against the observed human action.
|
| 164 |
+
4. Call `update(action, reward, info)` after the true trial outcome is revealed.
|
| 165 |
+
5. Append the trial to history and continue.
|
| 166 |
+
|
| 167 |
+
A valid prediction returns probabilities over the available actions, for example:
|
| 168 |
+
|
| 169 |
+
```python
|
| 170 |
+
{"action_probs": {0: 0.25, 1: 0.25, 2: 0.25, 3: 0.25}}
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
## Safety and leakage policy
|
| 174 |
+
|
| 175 |
+
- Original participant identifiers, original block numbers, original trial ids, raw filenames, and raw study/source identifiers are not included.
|
| 176 |
+
- Demographic variables are not included.
|
| 177 |
+
- `subject_id`, `trajectory_id`, and `metadata.block_id` are anonymized labels.
|
| 178 |
+
- Counterfactual option payoffs are not included in the agent-facing trajectory history. For public episodes, they are kept only in the separate reward-schedule sidecar.
|
| 179 |
+
- The dataset card intentionally omits the original article and raw-data source so that challenge participants cannot trivially recover hidden evaluation splits from external copies of the raw dataset.
|
| 180 |
+
|
| 181 |
+
Do not use this release to identify the original study, raw dataset, collection site, institution, lab, article, or participant pool. Do not add source-identifying details to public repositories, participant documentation, or submissions.
|
| 182 |
+
|
| 183 |
+
## Relationship to hidden evaluation
|
| 184 |
+
|
| 185 |
+
The public split supports development. Official challenge evaluation uses hidden splits prepared by the organizers to test generalization across unreleased trials, unreleased participants, unreleased episodes, and a separate held-out task. Hidden evaluation files and source mappings are not part of this public release.
|