Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Compute accuracy

Hello everyone,

I am using a file in my experiment which contains the stimuli and also the correct_response.

However, the accuracy is not computed. My data only contains correct_response and response, but the accuracy is always computed as 0.

What do I have to do, in order to make it work?

Thank you!

Maike

Comments

  • Hi Maike,

    Step 1: Provide more information.

    I can't tell you what is happening if I don't know what exactly it is that you do. You can show me your code/experimental structure, or upload your experiment.

    Thanks,

    Eduard

    Buy Me A Coffee

  • Hi Eduard,


    I attached my experiment as well as the file I am using. Division_stimuli is for the experimental loop, division_probe for the practice_loop.


    Thank you a lot,

    Maike

  • Hi Maike,

    No idea what is going. I added code in two inline_scripts to manually compute accuracy. It does work now.

    A potential problem was that you had different unlinked loggers (thats never a good idea). Not sure whether this caused the problem though.

    Good luck,

    Eduard


    Buy Me A Coffee

  • edited October 2020

    Hi Eduard,

    thank you a lot for your help!

    I only got one last problem. I wanted to quit the experimental loop if the first 10 trials are answered incorrectly. I now implemented the compute accuracy and also the break_if script. But somehow, if a trial past trial 10 is answered incorrectly, the loop always breaks and the experiment ends. I don't really understand why, because var.acc shoudn´t be 0 in that case, because it even happens if the first 10 trials are answered correctly. I attached the experiment with the modifications.



  • Hi Maike,

    Sorry for the late reply.

    In the inline_script "break_after_10_inline", you can change this line

    if var.count_fixation_experiment>9 and var.acc == 0:

    into this

    if var.count_fixation_experiment==9 and var.acc == 0:

    That should fix the problem that you describe. However, the fact that this could occur, suggests to me that the accuracy is still not computed perfectly. Have you tested it? Can you confirm that it worked?

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.