Update main.py

This commit is contained in:
Namhyeon Go 2021-04-04 11:15:23 +09:00 committed by GitHub
parent 15e2071c29
commit 0c49629ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ model.run()
solution = model.output_dict solution = model.output_dict
variable = model.output_dict['variable'] variable = model.output_dict['variable']
_x = 958 # prediction _x = max([row[0] for row in rows]) + 1 # get highest number
print ('Recommended numbers:') print ('Recommended numbers (' + str(_x) + 'th):')
nums = sorted([make_num(_x, n, variable[0], variable[1], variable[2], 1, 45) for n in range(1, 7)]) nums = sorted([make_num(_x, n, variable[0], variable[1], variable[2], 1, 45) for n in range(1, 7)])
print(', '.join(str(x) for x in nums)) print(', '.join(str(x) for x in nums))