Vowpal Wabbit logistic b=20
This commit is contained in:
parent
16f61dceee
commit
af41754806
10903
dev-0/out.tsv
10903
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,9 @@ out_inv = {v: k for k, v in out_dict.items()}
|
|||||||
|
|
||||||
for line in sys.stdin:
|
for line in sys.stdin:
|
||||||
probs = line.split(' ')
|
probs = line.split(' ')
|
||||||
|
out = ""
|
||||||
for prob in probs:
|
for prob in probs:
|
||||||
fields = prob.split(':')
|
fields = prob.split(':')
|
||||||
first = out_inv[int(fields[0])]
|
first = out_inv[int(fields[0])]
|
||||||
print(first + ":" + fields[1], end=" ")
|
out += first + ":" + fields[1] + " "
|
||||||
|
print(out[:-1], end="")
|
10893
test-A/out.tsv
10893
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user