Repository navigation
1.3.1. GRAD Algorithm
-
Namespace:
JbtiEvolution.OraklLearn.RevisionProject.Core
The GRAD class implements the "Gradual Retention through Adaptive Distribution" algorithm, which dynamically adjusts the difficulty level of questions based on user performance. This class is internal and static, indicating that it is intended to be used only within this assembly and cannot be instantiated.
The purpose of the GRAD algorithm is to optimize learning by modifying the frequency of question presentation based on the user's historical performance:
- Correct answers lead to less frequent presentations by promoting questions to higher buckets.
- Partially correct answers maintain the current presentation frequency, unless there is a pattern of difficulty.
- Incorrect answers increase the presentation frequency by demoting questions to lower buckets.
public static void ApplyDistribution(
QuestionForeignKey item,
RevisionQuestionKpi kpi,
RevisionQuestionKpiHistory history)The ApplyDistribution method applies the GRAD algorithm to adjust the distribution of the given question based on its correctness status (Correct, Partially Correct, Incorrect).
-
item:QuestionForeignKey- Represents the current question response with its correctness status. -
kpi:RevisionQuestionKpi- Represents the key performance indicators, including a history of outcomes for this question. -
history:RevisionQuestionKpiHistory- Tracks the status of the question distribution, particularly the current bucket.
The GRAD algorithm uses three private helper methods to apply different rules based on the response correctness:
Handles cases where questions are answered correctly, potentially advancing the question to a higher bucket to reduce its presentation frequency.
- Mastery: Move to +3 higher buckets if the last two attempts were correct.
- Good Understanding: Move to +2 higher buckets if the last attempt was correct.
- Basic Correctness: Move to +1 higher bucket for a single correct answer.
Manages situations where questions are partially correct, maintaining the current bucket or demoting based on previous correct or incorrect attempts.
- Learning Difficulty: Move to -1 lower bucket if the last attempt was correct.
- Progression: Maintain the bucket if the last attempt was incorrect.
- Continuation: Maintain the bucket if no prior failed attempts.
Deals with incorrectly answered questions, potentially demoting to a lower bucket to increase repetition and learning opportunities.
A skipped question is considered incorrect. This score level is retained in the time series for enhanced future algorithm improvements.
- Major Difficulty: Move to -2 lower buckets if there are consistent issues (last two attempts were partially correct or incorrect).
- Learning Difficulty: Move to -1 lower bucket if the last attempt was partially correct or incorrect.
- Major Regression: Move to -1 lower bucket if the previous correct attempt is followed by incorrect ones.
- Minor Regression: Maintain the bucket if the last attempt was correct.
- Continuation: Move to -1 lower bucket.
The GRAD class efficiently adjusts question difficulty levels to align with users' learning curves by making real-time data-driven decisions based on historical performance. This adaptive learning mechanism promotes mastery through balanced repetition and challenge.

https://orakllearn.com · Author: Jimmy Bourque · https://jbti-evolution.com
- Main page
- Overview
- Foundation
- Integration
- Flow
- Using OraklLearn
- Configuration
- Monitoring