Zhilin Fan

Results issues of Zhilin Fan

首先非常感谢贵校提供的代码,我在看这段的时候有点疑问,不知道是不是代码逻辑问题呢🙋 def process_raw_pred(raw_question_matrix, raw_pred, num_questions: int) -> tuple: questions = torch.nonzero(raw_question_matrix)[1:, 1] % num_questions ##torch.nonzero(raw_question_matrix)[1:, 1]表示raw_question_matrix中非0的位置,即用户的有效回答 length = questions.shape[0] pred = raw_pred[: length] pred = pred.gather(1, questions.view(-1, 1)).flatten() truth =...