From eb09f66494fda9d41bf7192cbb13f5d78757eda6 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 29 Jul 2021 22:31:38 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index 5dfc044..29d1fb0 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1827,8 +1827,8 @@ def kernel_30(o_29, ids=None, delay=None,): elif ids == 'v6': t8 = numpy.stack( [ - o_29['t5'].portion > 0.05, - o_29['t5'].min_conf > 0.5, + o_29['t5'].portion > 0.02, + o_29['t5'].min_conf > 0.4, o_29['t5']['t8'].data > 0, ], axis=0 @@ -1836,6 +1836,7 @@ def kernel_30(o_29, ids=None, delay=None,): ids = numpy.random.choice( numpy.where(t8)[0], min(70, t8.sum()), + replace=False, ) pprint.pprint([ t8.sum(),