Skip to content

Commit

Permalink
added hint avoidance ("not using hints") condition; hints now count t…
Browse files Browse the repository at this point in the history
…owards struggle detector unless student has previously seen all hint levels
  • Loading branch information
d19fe8 committed Jul 16, 2017
1 parent b09cc92 commit ef8ff02
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions HTML/Assets/Detectors/Lumilo/Struggle/struggle__moving_average.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,19 @@ function receive_transaction( e ){
help_model_output = "preferred"; //first action in whole tutor is set to "preferred" by default
}

if(e.data.tutor_data.action_evaluation.toLowerCase() != "hint"){
// attemptCorrect = (e.data.tutor_data.action_evaluation.toLowerCase() == "correct") ? 1 : 0;
// attemptWindow.shift();
// attemptWindow.push(attemptCorrect);

// ignore further hint requests if student has already seen all hint levels for this step (i.e., these do not contribute to struggle detector)
if(seenAllHintLevels(e) && e.data.tutor_data.action_evaluation.toLowerCase() == "hint"){
console.log("is hint request on step for which student has already seen all hints: no direct/immediate effect on struggle detector");
}
else{
attemptCorrect = (e.data.tutor_data.action_evaluation.toLowerCase() == "correct") ? 1 : 0;
attemptWindow.shift();
attemptWindow.push(attemptCorrect);
}
else{
console.log("is hint request: no direct/immediate effect on struggle detector");
}

if (help_model_output == "ask teacher for help/try step"){
for(var i=0; i<(windowSize-threshold); i++){
Expand Down Expand Up @@ -479,6 +484,9 @@ function receive_transaction( e ){
if(help_model_output == "ask teacher for help/try step"){
elaborationString = "hints aren't helping";
}
else if(help_model_output == "not acceptable/hint avoidance"){
elaborationString = "not using hints";
}
else{
elaborationString = "lots of errors";
}
Expand Down

0 comments on commit ef8ff02

Please sign in to comment.