model = copy.deepcopy(model).to(local_device).eval()
result = predict_full(
model=model,
- input=c_quizzes,
+ input=quizzes,
fraction_with_hints=fraction_with_hints,
local_device=local_device,
)
- nb_mistakes = (result != c_quizzes).long().sum(dim=1)
+ nb_mistakes = (result != quizzes).long().sum(dim=1)
nb_correct += (nb_mistakes == 0).long()
nb_wrong += nb_mistakes >= args.nb_mistakes_to_be_wrong
c_quizzes = c_quizzes.to(local_device)
to_keep, nb_correct, nb_wrong = evaluate_quizzes(
- quizzes=c_quizzes, models=models, local_device=local_device
+ quizzes=c_quizzes,
+ models=models,
+ fraction_with_hints=0,
+ local_device=local_device,
)
if solvable_only: