Skip to content

Commit

Permalink
updates to critical struggle: threshold for critical struggle mastery…
Browse files Browse the repository at this point in the history
… is at 0.8 and ">10 min" is the highest time alert that appears

note: mastery threshold for a 'wheel-spinning' detector can be viewed as a parameter that controls false positive versus false negative rate... lowering it means reducing false positive rate at the risk of having more false negatives
  • Loading branch information
d19fe8 committed Jul 15, 2017
1 parent aafe015 commit 3189181
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var elaborationString;
//[optional] single out TUNABLE PARAMETERS below
var windowSize = 6;
var threshold = 1;
var mastery_threshold = 0.85;
var mastery_threshold = 0.8;
var BKTparams = {p_transit: 0.2,
p_slip: 0.1,
p_guess: 0.2,
Expand Down Expand Up @@ -337,7 +337,17 @@ function checkTimeElapsed(initTime) {
var timeDiff = secondsSince(initTime);
var currTimeMessage = detector_output.value.split(',')[1];
console.log(currTimeMessage);
if( timeDiff > (300-seedTime)){
if( timeDiff > (600-seedTime)){
if (currTimeMessage!=" > 10 min"){
detector_output.history = JSON.stringify([attemptWindow, skillLevelsAttempts, initTime, onboardSkills]);
detector_output.value = "1, > 10 min, " + elaborationString;
detector_output.time = new Date();
mailer.postMessage(detector_output);
postMessage(detector_output);
console.log("output_data = ", detector_output);
}
}
else if( timeDiff > (300-seedTime)){
if (currTimeMessage!=" > 5 min"){
detector_output.history = JSON.stringify([attemptWindow, skillLevelsAttempts, initTime, onboardSkills]);
detector_output.value = "1, > 5 min, " + elaborationString;
Expand Down

0 comments on commit 3189181

Please sign in to comment.