From 2fa4151942eb1074adaa4190b25b68e2e4622630 Mon Sep 17 00:00:00 2001 From: Ken Holstein Date: Tue, 4 Jul 2017 23:45:45 -0400 Subject: [PATCH] added explicit "last step correct" condition to help model --- .../Detectors/Lumilo/System_Misuse/system_misuse.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/HTML/Assets/Detectors/Lumilo/System_Misuse/system_misuse.js b/HTML/Assets/Detectors/Lumilo/System_Misuse/system_misuse.js index eaa6a59..4df4ffe 100644 --- a/HTML/Assets/Detectors/Lumilo/System_Misuse/system_misuse.js +++ b/HTML/Assets/Detectors/Lumilo/System_Misuse/system_misuse.js @@ -37,8 +37,8 @@ var elaborationString; //[optional] single out TUNABLE PARAMETERS below var windowSize = 7; //arbitrary: need to tune var threshold = 1; //arbitrary: need to tune -var errorThreshold = 0.7; //currently somewhat arbitrary -var newStepThreshold = 0.7; //currently somewhat arbitrary +var errorThreshold = 2; //currently somewhat arbitrary +var newStepThreshold = 1; //currently somewhat arbitrary var familiarityThreshold = 0.4; var senseOfWhatToDoThreshold = 0.6; var hintIsHelpfulPlaceholder = true; //currently a dummy value (assumption that hint is always helpful...) @@ -335,9 +335,12 @@ function updateHistory(e){ help_variables.seenAllHints[e.data.tutor_data.selection] = (e.data.tutor_data.current_hint_number == e.data.tutor_data.total_hints_available); } } - if (e.data.tutor_data.action_evaluation.toLowerCase() == "incorrect"){ + else if (e.data.tutor_data.action_evaluation.toLowerCase() == "incorrect"){ help_variables.lastAction = "error"; } + else{ + help_variables.lastAction = "correct"; + } help_variables.lastSenseOfWhatToDo = senseOfWhatToDo(e);