Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. solution = np.random.randint(0, 2, size=len(test_no_classes))
  2. with open('my_solution.csv', 'w') as fout:
  3. print('Id', 'Prediction', sep=',', file=fout)
  4. for i, prediction in enumerate(solution):
  5. print(i, prediction, sep=',', file=fout)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement