soarhigh commited on
Commit
e5d4905
1 Parent(s): d9dc141

return just the scores

Browse files
Files changed (1) hide show
  1. nextus_regressor_class.py +4 -4
nextus_regressor_class.py CHANGED
@@ -30,8 +30,8 @@ class NextUsRegressor(nn.Module):
30
  # TODO: actually handle list of strings
31
  vals = regressed.flatten().tolist()
32
  # must return the whole thing, not just the 0-th element
33
- strs = list()
34
- for t, v in list(zip(txts, vals)):
35
- strs.append(str(round(v, 4)) + "\t" + t[:100])
36
- return "\n".join(strs)
37
  # return torch.tensor(val).unsqueeze(1)
 
30
  # TODO: actually handle list of strings
31
  vals = regressed.flatten().tolist()
32
  # must return the whole thing, not just the 0-th element
33
+ # strs = list()
34
+ # for t, v in list(zip(txts, vals)):
35
+ # strs.append(str(round(v, 4)) + "\t" + t[:100])
36
+ return "\n".join([str(round(s, 4)) for s in vals])
37
  # return torch.tensor(val).unsqueeze(1)