From 94a0bd1873604a518b95bc6cea59e4fb9ee7b11f Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 22 Jul 2021 11:19:16 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index 8816925..7deb47a 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1023,8 +1023,10 @@ def kernel_15( t3 = o_14['o_13']['t1'] t4 = numpy.where(t3.name.data == t2)[0] + numpy.random.seed(0) + t22 = numpy.random.choice(t4, 10): import tqdm - for k in tqdm.tqdm(range(-10, -1)): + for k in tqdm.tqdm(t22): t5 = t4[-1] t6 = t3.video_path.data[t5] t7 = t3.frame_id.data[t5]