New basic signs model
This commit is contained in:
committed by
Jelle De Geest
parent
06aa9206ac
commit
43887af670
@@ -85,18 +85,10 @@ public abstract class AbstractMinigameController : AbstractFeedback
|
||||
if (signPredictor != null && signPredictor.learnableProbabilities != null && gameIsActive)
|
||||
{
|
||||
// Get highest predicted sign
|
||||
string predictedSign = signPredictor.learnableProbabilities.Aggregate((a, b) => a.Value > b.Value ? a : b).Key;
|
||||
float accuracy = signPredictor.learnableProbabilities[predictedSign];
|
||||
string predictedSign = signPredictor.learnableProbabilities.Aggregate((a, b) => a.Value < b.Value ? a : b).Key;
|
||||
float distance = signPredictor.learnableProbabilities[predictedSign];
|
||||
|
||||
// vvv TEMPORARY STUFF vvv
|
||||
if (predictedSign == "J" && accuracy <= 0.97f)
|
||||
{
|
||||
predictedSign = signPredictor.learnableProbabilities.Aggregate((x, y) => x.Value > y.Value && x.Key != "J" ? x : y).Key;
|
||||
}
|
||||
accuracy = signPredictor.learnableProbabilities[predictedSign];
|
||||
// ^^^ TEMPORARY STUFF ^^^
|
||||
|
||||
ProcessMostProbableSign(accuracy, predictedSign);
|
||||
ProcessMostProbableSign(distance, predictedSign);
|
||||
}
|
||||
|
||||
// This part is the only reason that feedbackProgress is needed in the abstract
|
||||
@@ -213,7 +205,7 @@ public abstract class AbstractMinigameController : AbstractFeedback
|
||||
List<string> signsList = new List<string>();
|
||||
foreach (Learnable learnable in signPredictorTheme.learnables)
|
||||
{
|
||||
signsList.Add(learnable.name);
|
||||
signsList.Add(learnable.name.ToUpper().Replace(" ", "-")); ;
|
||||
}
|
||||
|
||||
return signsList;
|
||||
|
||||
Reference in New Issue
Block a user