@@ -26,8 +26,8 @@ class InterestClassifier(InterestNoveltyKnowledgeBaseClassifier):
2626
2727 During the training process, the classifier uses the idea of game matching
2828 established in TrueSkill. It represents the learning process as a game of two teams.
29- One team consists of all the knowledge components from the learnable unit and
30- the other consist of all the corresponding knowledge components from the learner.
29+ One team consists of all the knowledge components from the learnable unit, and
30+ the other consists of all the corresponding knowledge components from the learner.
3131 Then, the classifier uses the given label to update the knowledge components of
3232 the learner.
3333
@@ -37,7 +37,7 @@ class InterestClassifier(InterestNoveltyKnowledgeBaseClassifier):
3737 the learner wins the game.
3838
3939 During the prediction process, the classifier uses cumulative density function
40- of normal distribution to calculate the probability that the learner engage in
40+ of normal distribution to calculate the probability that the learner engages in
4141 the learning event. It calculates the probability of getting x in a
4242 Normal Distribution N(0, std) where x is the difference between
4343 the learner's skill (mean) and the learnable unit's skill (mean) and
@@ -52,7 +52,7 @@ class InterestClassifier(InterestNoveltyKnowledgeBaseClassifier):
5252 >>> interest_classifier = InterestClassifier()
5353 >>> interest_classifier
5454 InterestClassifier()
55- >>> # prepare event model
55+ >>> # prepare an event model
5656 >>> knowledges = [
5757 ... Knowledge({1: KnowledgeComponent(mean=0.57, variance=1e-9)}),
5858 ... Knowledge({
@@ -90,7 +90,7 @@ class InterestClassifier(InterestNoveltyKnowledgeBaseClassifier):
9090 "decay_func_type" : ValueConstraint ("short" , "long" ),
9191 "decay_func_factor" : [
9292 TypeConstraint (float ),
93- ValueConstraint (Range (ge = [ 0 ] )),
93+ ValueConstraint (Range (ge = 0 )),
9494 ],
9595 }
9696
@@ -121,11 +121,11 @@ def __init__(
121121 init_skill:
122122 The initial mean of the learner's knowledge component.
123123 It will be used when the learner interacts with knowledge components
124- at its first time.
124+ for the first time.
125125 def_var:
126126 The initial variance (>0) of the learner's knowledge component.
127127 It will be used when the learner interacts with knowledge components
128- at its first time.
128+ for the first time.
129129 beta:
130130 The distance which guarantees about 76% chance of winning.
131131 The recommended value is sqrt(def_var) / 2.
@@ -150,13 +150,13 @@ def __init__(
150150 decay_func_factor:
151151 A factor (>=0) that will be used in both short and long
152152 interest decay function. Defaults to 0, which disables
153- the interest decay function .
153+ the interest decay function.
154154
155155 Raises:
156156 TrueLearnTypeError:
157- Types of parameters does not satisfy their constraints.
157+ Types of parameters do not satisfy their constraints.
158158 TrueLearnValueError:
159- Values of parameters does not satisfy their constraints.
159+ Values of parameters do not satisfy their constraints.
160160 """
161161 super ().__init__ (
162162 learner_model = learner_model ,
@@ -165,7 +165,7 @@ def __init__(
165165 def_var = def_var ,
166166 tau = tau ,
167167 beta = beta ,
168- # learner always wins in interest classifier
168+ # learner always wins in interest classifier,
169169 # hence we should always update regardless of the actual label
170170 # positive_only should be disabled to ensure the update method
171171 # is always called
@@ -219,7 +219,7 @@ def _generate_ratings(
219219 event_time:
220220 An optional float representing the event time.
221221 _y:
222- A bool indicating whether the learner engage in
222+ A bool indicating whether the learner engages in
223223 the learning event.
224224
225225 Returns:
0 commit comments