Howdy, Stranger!

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

Supported by

How to rerun a loop after checking accuracy ?

I am new to opensesame and I find it really cool. Get software.

I need help with the following scenario.

In my experiment, there is a learning phase and a testing phase. Participants learn words during the first phase(loop-sequence) and are tested in the second phase(loop-sequence).
After the test phase, I want to re-run the learning phase(loop) if the accuracy is less than 80%.

My problem is how do i specify, if the acc is less than 80, run this loop.

I tried python script, but its not working for me.

Comments

  • edited May 2017

    Hi,

    Say that you want to repeat block_loop when accuracy is less than 80%, then you could do the following:

    • Embed block_loop in another loop, here meta_loop
    • Set the repeat value for meta_loop very high (so that it's practically infinite)
    • Set the break-if statement for meta_loop to [acc] >= 80, and disable 'Evaluate on first cycle'

    Do you see the logic?

    Cheers,
    Sebastiaan

  • Works perfect.

    Thanks Sebastian...

  • Hi there,

    I am trying to do a similar thing and have tried this method but it seems to take the cumulative accuracy across all completed block repetitions. Is there a way to break the loop based only on accuracy of the most recent block?

    Thanks!

  • Hi,

    If you reset the feedback in the end (or the beginning) of a block, only the most recent block should be used for the computations. So just drag the reset_feeback item in the beginning of your block_sequence and you should be set.

    Good luck.

    Eduard

    Buy Me A Coffee

  • That worked a treat, thanks so much!

  • edited December 2017

    Hello, I have done what sebastiaan said and it worked, but I need an extra thing.

    I need please the experiment to end if the participant didn't reach to 80% accuracy. How can I do that?
    I need the exp to end after two tries to reach 80% acc - I know how to repeat if didn't get to 80% but I don't know how to end the exp.

  • Hi @Matanel Weissman,

    I would use a simple inline_script that raises an Exception in this case. That will cause the experiment to exit. Like so:

    if var.acc < 80:
        raise Exception('Accuracy to low!')
    

    Cheers!
    Sebastiaan

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games