Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 47b80e4

Browse files
committed
increase prediction time
1 parent 88cdd22 commit 47b80e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mljar/mljar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def compute_prediction(X, model_id, project_id, keep_dataset = False):
330330
dataset = DatasetClient(project_id).add_dataset_if_not_exists(X, y = None)
331331

332332
# check if prediction is available
333-
total_checks = 100
333+
total_checks = 500
334334
for i in xrange(total_checks):
335335
prediction = PredictionClient(project_id).\
336336
get_prediction(dataset.hid, model_id)
@@ -353,7 +353,7 @@ def compute_prediction(X, model_id, project_id, keep_dataset = False):
353353

354354
#sys.stdout.write('\rFetch predictions: {0}%'.format(round(i/(total_checks*0.01))))
355355
#sys.stdout.flush()
356-
time.sleep(5)
356+
time.sleep(10)
357357

358358
#sys.stdout.write('\r\n')
359359
logger.error('Sorry, there was some problem with computing prediction for your dataset. \

0 commit comments

Comments
 (0)