G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 167 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def prepare_for2():
  2.     fin = open('test.tsv')
  3.     fout = open('control2.tsv', 'w')
  4.     print('INPUT:image\tINPUT:other\tGOLDEN:result', file=fout)
  5.     test = []
  6.     data = []
  7.     for i in range(250):
  8.         link, t = list(map(str, fin.readline().split()))
  9.         for key, val in links.items():
  10.             data.append(link + '\t' + val)
  11.             if randrange(0, 10) == 0:
  12.                 test.append(data[-1])
  13.                 data.pop()
  14.                 test[-1] += '\t' + ('Yes' if key == t else 'No')
  15.     shuffle(test)
  16.     for row in test:
  17.         print(row, file=fout)
  18.     fout = open('prod2.tsv', 'w')
  19.     print('INPUT:image\tINPUT:other', file=fout)
  20.     shuffle(data)
  21.     for row in data:
  22.         print(row, file=fout)
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top