SigmundAI Copilot allows you to build and debug experiments with help from artificial intelligence. Install the Sigmund extension (public beta) and try it out now!
Access response history
instance responses
The responses
object contains the history of the responses that were
collected during the experiment.
A responses
object is created automatically when the experiment starts.
In addition to the functions listed below, the following semantics are supported:
Example
# Loop through all responses, where last-given responses come first
# Each response has correct, response, response_time, item, and feedback
# attributes.
for response in responses:
print(response.correct)
# Print the two last-given responses
print('last_two responses:')
print(responses[:2])
add(response=None, correct=None, response_time=None, item=None, feedback=True)
Adds a response.
Parameters
- response The response value, for example, 'space' for the spacebar, 0 for: joystick button 0, etc.
- correct: The correctness of the response.
- response_time: The response_time.
- item: The item that collected the response.
- feedback: Indicates whether the response should be included in feedback on accuracy and average response time.
Example
responses.add(response_time=500, correct=1, response='left')
clear()
Clears all responses.
Example
responses.clear()
reset_feedback()
Sets the feedback status of all responses to False, so that only new responses will be included in feedback.
Example
responses.reset_feedback()