-
Notifications
You must be signed in to change notification settings - Fork 9
fix randomize #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix randomize #38
Conversation
Codecov Report
@@ Coverage Diff @@
## master #38 +/- ##
========================================
Coverage ? 0.00%
========================================
Files ? 3
Lines ? 126
Branches ? 0
========================================
Hits ? 0
Misses ? 126
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
|
Currently trying to fix some CI issues but for information the trial randomization was getting caught in a loop because we had one check that made sure that a target was not presented more than 3 times in a given position which becomes impossible when you have a large number of blocks. |
|
@marcobarilari let me know what you think. Once this is OK we can apply the changes to the audio localizer |
|
On a side: I am tempted to move out the code for displaying the design in an image in a different function taking LMK |
good point !! Can I let you do that ? |
I am not too obsessed with this kind of thing on a localizer that we will use for one run per participant. Also because random means that you might have that kind of clustering once in a while. So this would be low priority at the moment for me. You could expand the unit test to ensure that over a large amount of runs we do get a uniform distribution of the targets even if on a given run you can have this kind of clustering. If you want to tweak things to enforce a more uniform distribution on every run, you have to change the conditions to rule 3 (line 104 in expDesign) but then make sure you also change it in its unit test line 39 and 73. Just remember that this condition has to scale with number of blocks we have in a run and that this was the line that was creating infinite loops because it would fail to find a solution. |
|
trying to fix the merge conflixt on the submodule. Grrr... |

@marcobarilari
Opening this one already so you can follow along and make sure my logic is not out of whack.
Doing it again. This time with CI.