[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-29 22:31:38 +03:00
parent 446bf2bf68
commit eb09f66494

@ -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(),