Hello!
I have a typical adaptive staircase like this:
trials = data.StairHandler(startVal=Target_Duration, extraInfo=expInfo,
stepSizes=[0.017], stepType=‘lin’,
nReversals=4, nTrials=50,
nUp=1, nDown=3, # set threshold
minVal=0.01, maxVal=1,
originPath=-1, name=‘trials’)
thisExp.addLoop(trials)
for Target_Duration in trials:
currentLoop = trials
But I would like to change the number of steps for the threshold calculation every trial. So, every trial in the experiment it would randomly select between 2 and 3 steps to go down.
Something like this:
np.random.choice([2,3],1)
Someone knows how to do that?