Result score
backend.result.score#
boolean_score(result, data)
#
Binary score: return 1 if participant answered yes, 0 otherwise
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
ScoringData
|
the participant’s response |
required |
Source code in backend/result/score.py
correctness_score(result, data)
#
Binary score: return 1 if the participant’s response is equal to the expected response, 0 otherwise
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
ScoringData
|
the participant’s response |
required |
Source code in backend/result/score.py
likert_score(result, data)
#
Translate the nth category of a Likert scale into n
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
LikertData
|
the participant’s response |
required |
Source code in backend/result/score.py
reaction_time_score(result, data)
#
Return the difference between the configured maximal response_time
and the participant’s reaction time (decision_time)
If the answer of the participant is incorrect, return the negative reaction time
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
ScoringData
|
the participant’s response |
required |
Source code in backend/result/score.py
reverse_likert_score(result, data)
#
Translate the nth category of a Likert scale into n_steps - n
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
LikertData
|
the participant’s response |
required |
Source code in backend/result/score.py
song_sync_recognition_score(result, data)
#
First step of SongSync scoring (used in experiment.rules.hooked and derivatives):
If the participant gives no response or negative response to ‘Do you know this song?’, return 0 otherwise, return the decision time
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
ScoringData
|
the participant’s response |
required |
Source code in backend/result/score.py
song_sync_verification_score(result, data)
#
Second step of the SongSync scoring, only happens if participant stated they know the song, used to verify that the statement was truthful.
After continuation of audio, participants need to decide whether it was continued in the correct place. If answered incorrectly, this function modifies the reaction time score of the previous step.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Result
|
the result to be scored |
required |
data
|
ScoringData
|
the participant’s response |
required |