From 31891819577f10f66080faa00ebd7f07807d2b97 Mon Sep 17 00:00:00 2001 From: Ken Holstein Date: Sat, 15 Jul 2017 19:19:44 -0400 Subject: [PATCH] updates to critical struggle: threshold for critical struggle mastery 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 --- .../Lumilo/Critical_Struggle/critical_struggle.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js b/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js index 74ae52e..5b8672c 100644 --- a/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js +++ b/HTML/Assets/Detectors/Lumilo/Critical_Struggle/critical_struggle.js @@ -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, @@ -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;