You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"short_description": "Browser preview of the two-choice probabilistic reward learning task with block-wise contingencies",
46
+
"short_description": "Browser companion for the two-choice probabilistic reward learning task with block-wise contingencies and psyflow-web trial-context stamping",
| Short Description | Browser preview of the two-choice probabilistic reward learning task with block-wise contingencies |
10
+
| Short Description | Browser companion for the two-choice probabilistic reward learning task with block-wise contingencies and psyflow-web trial-context stamping|
11
11
| Created By | TaskBeacon py2js port |
12
-
| Date Updated | 2026-04-03|
12
+
| Date Updated | 2026-04-04|
13
13
| Modality | Behavior |
14
14
| Language | Chinese |
15
15
16
16
## 1. Task Overview
17
17
18
-
This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participants repeatedly choose between a left and a right machine, receive stochastic reward feedback, and learn which side is better within each block. The browser preview preserves the local trial contract and response mapping, while shortening the run to a 2-block, 12-trial preview for fast review in the shared runner.
18
+
This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participants repeatedly choose between a left and a right machine, receive stochastic reward feedback, and learn which side is better within each block. The browser companion preserves the local trial contract, response mapping, and blockwise contingency structure, while shortening the run to a 2-block, 12-trial preview for fast review in the shared runner. Participant-visible screens now stamp trial context through the shared psyflow-web unit API so the browser port stays aligned with current runner behavior.
19
19
20
20
## 2. Task Flow
21
21
@@ -27,7 +27,7 @@ This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participa
27
27
| Show Instructions | Present the Chinese instruction screen. |
| Generate Conditions | Expand the block-wise left/right reward probabilities into repeated trial conditions. |
30
-
| Run Trials | Execute the same fixation -> choice -> confirmation -> feedback -> ITI flow as the local task. |
30
+
| Run Trials | Execute the same fixation -> choice -> confirmation -> feedback -> ITI flow as the local task with `set_trial_context(...)` annotations on each visible phase. |
31
31
| Block Summary | Show per-block response and reward summary when more than one block remains. |
32
32
| Finalize | Show the final total score and export data through the shared runner. |
33
33
@@ -49,13 +49,15 @@ This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participa
49
49
| Reward sampling | The chosen side is sampled with Bernoulli reward using the configured probability. |
50
50
| No-response fallback | If the response deadline expires, a configurable fallback choice is imputed. |
51
51
| State tracking | A cumulative reward tracker updates the running score after every trial. |
52
+
| Trial context | Each visible phase stamps `trial_context` metadata through the shared psyflow-web API. |
52
53
| Adaptive control | None. This is a static probabilistic learning task, not a staircase or reversal task. |
53
54
54
55
### Other Logic
55
56
56
57
| Feature | Description |
57
58
|---|---|
58
59
| Trial context | Every participant-visible screen emits trial context before `show()` or `captureResponse()`. |
60
+
| Trial ids | Web translation now uses a local monotonically increasing trial id instead of importing `next_trial_id` from the desktop runtime. |
59
61
| Deterministic QA seed | Preview sampling uses the configured block seeds for reproducible browser QA runs. |
60
62
| Summary metrics | Block and final summaries report left-choice rate, win rate, response rate, and total score. |
61
63
@@ -117,7 +119,7 @@ Settings are defined in `config/config.yaml`.
117
119
118
120
## 4. Methods (for academic publication)
119
121
120
-
The HTML companion presents the same two-armed bandit learning task as the local PsychoPy build, but inside the shared browser runner. On each trial, participants choose one of two machines with block-specific reward probabilities, receive stochastic feedback, and update their choice strategy over time. The preview keeps the same stage order, scoring meaning, and timeout/fallback behavior as the local task while shortening the overall run length for browser testing and gallery navigation.
122
+
The HTML companion presents the same two-armed bandit learning task as the local PsychoPy build, but inside the shared browser runner. On each trial, participants choose one of two machines with block-specific reward probabilities, receive stochastic feedback, and update their choice strategy over time. The preview keeps the same stage order, scoring meaning, and timeout/fallback behavior as the local task while shortening the overall run length for browser testing and gallery navigation. The JS port also mirrors the current psyflow-web unit/context pattern so the browser task can be audited phase by phase.
| Short Description | Browser preview of the two-choice probabilistic reward learning task with block-wise contingencies |
10
+
| Short Description | Browser companion for the two-choice probabilistic reward learning task with block-wise contingencies and psyflow-web trial-context stamping|
11
11
| Created By | TaskBeacon py2js port |
12
-
| Date Updated | 2026-04-03|
12
+
| Date Updated | 2026-04-04|
13
13
| Modality | Behavior |
14
14
| Language | Chinese |
15
15
16
16
## 1. Task Overview
17
17
18
-
This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participants repeatedly choose between a left and a right machine, receive stochastic reward feedback, and learn which side is better within each block. The browser preview preserves the local trial contract and response mapping, while shortening the run to a 2-block, 12-trial preview for fast review in the shared runner.
18
+
This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participants repeatedly choose between a left and a right machine, receive stochastic reward feedback, and learn which side is better within each block. The browser companion preserves the local trial contract, response mapping, and blockwise contingency structure, while shortening the run to a 2-block, 12-trial preview for fast review in the shared runner. Participant-visible screens now stamp trial context through the shared psyflow-web unit API so the browser port stays aligned with current runner behavior.
19
19
20
20
## 2. Task Flow
21
21
@@ -27,7 +27,7 @@ This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participa
27
27
| Show Instructions | Present the Chinese instruction screen. |
| Generate Conditions | Expand the block-wise left/right reward probabilities into repeated trial conditions. |
30
-
| Run Trials | Execute the same fixation -> choice -> confirmation -> feedback -> ITI flow as the local task. |
30
+
| Run Trials | Execute the same fixation -> choice -> confirmation -> feedback -> ITI flow as the local task with `set_trial_context(...)` annotations on each visible phase. |
31
31
| Block Summary | Show per-block response and reward summary when more than one block remains. |
32
32
| Finalize | Show the final total score and export data through the shared runner. |
33
33
@@ -49,13 +49,15 @@ This HTML companion mirrors the local `T000038-two-armed-bandit` task. Participa
49
49
| Reward sampling | The chosen side is sampled with Bernoulli reward using the configured probability. |
50
50
| No-response fallback | If the response deadline expires, a configurable fallback choice is imputed. |
51
51
| State tracking | A cumulative reward tracker updates the running score after every trial. |
52
+
| Trial context | Each visible phase stamps `trial_context` metadata through the shared psyflow-web API. |
52
53
| Adaptive control | None. This is a static probabilistic learning task, not a staircase or reversal task. |
53
54
54
55
### Other Logic
55
56
56
57
| Feature | Description |
57
58
|---|---|
58
59
| Trial context | Every participant-visible screen emits trial context before `show()` or `captureResponse()`. |
60
+
| Trial ids | Web translation now uses a local monotonically increasing trial id instead of importing `next_trial_id` from the desktop runtime. |
59
61
| Deterministic QA seed | Preview sampling uses the configured block seeds for reproducible browser QA runs. |
60
62
| Summary metrics | Block and final summaries report left-choice rate, win rate, response rate, and total score. |
61
63
@@ -117,7 +119,7 @@ Settings are defined in `config/config.yaml`.
117
119
118
120
## 4. Methods (for academic publication)
119
121
120
-
The HTML companion presents the same two-armed bandit learning task as the local PsychoPy build, but inside the shared browser runner. On each trial, participants choose one of two machines with block-specific reward probabilities, receive stochastic feedback, and update their choice strategy over time. The preview keeps the same stage order, scoring meaning, and timeout/fallback behavior as the local task while shortening the overall run length for browser testing and gallery navigation.
122
+
The HTML companion presents the same two-armed bandit learning task as the local PsychoPy build, but inside the shared browser runner. On each trial, participants choose one of two machines with block-specific reward probabilities, receive stochastic feedback, and update their choice strategy over time. The preview keeps the same stage order, scoring meaning, and timeout/fallback behavior as the local task while shortening the overall run length for browser testing and gallery navigation. The JS port also mirrors the current psyflow-web unit/context pattern so the browser task can be audited phase by phase.
0 commit comments