From 0c49629ac0e666c6e61dcc7682aa2350d2c8c8f2 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 4 Apr 2021 11:15:23 +0900 Subject: [PATCH] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8cdd885..78ce9b8 100644 --- a/main.py +++ b/main.py @@ -44,8 +44,8 @@ model.run() solution = model.output_dict 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)]) print(', '.join(str(x) for x in nums))