feat(assessment): grade choice answers with distractors from error models
This commit is contained in:
1 parent
efa41d5967
commit
f1147b1885
22 files changed
+1346
-47
No files matched your search
@@ -96,6 +96,18 @@ type AssessmentAnswerObservation struct {
|
||||
ObservedAt time.Time
|
||||
}
|
||||
|
||||
// SignalAnswerFormat names the answer format under which the signals observe
|
||||
// an answer of the given variant format. The speed floors and the duplicate
|
||||
// evidence cap depend on the size of the answer space: a choice among a few
|
||||
// options is as small as an integer, so it is observed as one. The stored
|
||||
// column therefore keeps the two classes it was created with.
|
||||
func SignalAnswerFormat(answerFormat string) string {
|
||||
if answerFormat == AnswerFormatChoice {
|
||||
return AnswerFormatInteger
|
||||
}
|
||||
return answerFormat
|
||||
}
|
||||
|
||||
// Validate checks that the observation can be stored.
|
||||
func (observation AssessmentAnswerObservation) Validate() error {
|
||||
const location = "AssessmentAnswerObservation.Validate"
|
||||
|
||||
Reference in new issue
Block a user