Skip to content

Commit

Permalink
Assess performance fixes (#484)
Browse files Browse the repository at this point in the history
* fixed directed forgetting practice

* added missed percent as criteria for adaptive nback

* added to ART data
  • Loading branch information
IanEisenberg authored and vsoch committed Jul 18, 2016
1 parent cf8e8cb commit 1a9c840
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions adaptive_n_back/experiment.js
Expand Up @@ -45,14 +45,15 @@ function assessPerformance() {
sum += rt_array[j]
}
var avg_rt = sum / rt_array.length || -1
//calculate whether response distribution is okay
var missed_percent = missed_count/experiment_data.length
//calculate whether response distribution is okay
var responses_ok = true
Object.keys(choice_counts).forEach(function(key, index) {
if (choice_counts[key] > trial_count * 0.85) {
responses_ok = false
}
})
credit_var = (avg_rt > 200) && responses_ok
credit_var = (missed_percent < 0.4 && (avg_rt > 200) && responses_ok)
jsPsych.data.addDataToLastTrial({"credit_var": credit_var})
}

Expand Down
4 changes: 3 additions & 1 deletion angling_risk_task/experiment.js
Expand Up @@ -515,7 +515,9 @@ var round_over_block = {
}
jsPsych.data.addDataToLastTrial({
exp_stage: exp_stage,
caught_blue: caught_blue
caught_blue: caught_blue,
weather: weather,
release: release
})
},
};
Expand Down
6 changes: 4 additions & 2 deletions angling_risk_task_always_sunny/experiment.js
Expand Up @@ -335,7 +335,7 @@ var performance_var = 0
// task specific variables
var exp_stage = 'practice'
var num_practice_rounds = 2
var num_rounds = 20
var num_rounds = 30
var red_fish_num = 0
var total_fish_num = 0
var start_fish_num = 0
Expand Down Expand Up @@ -509,7 +509,9 @@ var round_over_block = {
}
jsPsych.data.addDataToLastTrial({
exp_stage: exp_stage,
caught_blue: caught_blue
caught_blue: caught_blue,
weather: weather,
release: release
})
}
};
Expand Down

0 comments on commit 1a9c840

Please sign in to comment.