return just the scores
Browse files
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 |
-
|
36 |
-
return "\n".join(
|
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)
|