You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pad_val (int, optional): pad value. Defaults to -1.
105
116
106
-
Returns:
107
-
q_seqs (torch.tensor): question id sequence of the 0~seqlen-1 interactions
108
-
c_seqs (torch.tensor): knowledge concept id sequence of the 0~seqlen-1 interactions
109
-
r_seqs (torch.tensor): response id sequence of the 0~seqlen-1 interactions
110
-
mask_seqs (torch.tensor): masked value sequence, shape is seqlen-1
111
-
select_masks (torch.tensor): is select to calculate the performance or not, 0 is not selected, 1 is selected, only available for 1~seqlen-1, shape is seqlen-1
112
-
dqtest (dict): not null only self.qtest is True, for question level evaluation
117
+
Returns:
118
+
(tuple): tuple containing
119
+
120
+
- **q_seqs (torch.tensor)**: question id sequence of the 0~seqlen-1 interactions
121
+
- c_seqs (torch.tensor): knowledge concept id sequence of the 0~seqlen-1 interactions
122
+
- r_seqs (torch.tensor): response id sequence of the 0~seqlen-1 interactions
123
+
- mask_seqs (torch.tensor): masked value sequence, shape is seqlen-1
124
+
- select_masks (torch.tensor): is select to calculate the performance or not, 0 is not selected, 1 is selected, only available for 1~seqlen-1, shape is seqlen-1
125
+
- dqtest (dict): not null only self.qtest is True, for question level evaluation
0 commit comments