[~] Refactor
This commit is contained in:
parent
bcc9cf6330
commit
9a327b8305
@ -1769,19 +1769,17 @@ def kernel_30(o_29, ids=None, delay=None,):
|
|||||||
70
|
70
|
||||||
)
|
)
|
||||||
elif ids == 'v2':
|
elif ids == 'v2':
|
||||||
t8 = numpy.where(
|
t8 = numpy.stack(
|
||||||
numpy.stack(
|
[
|
||||||
[
|
o_29['t5'].portion > 0.1,
|
||||||
o_29['t5'].portion > 0.1,
|
o_29['t5'].mean_conf > 0.6,
|
||||||
o_29['t5'].mean_conf > 0.6,
|
o_29['t5']['t11'].data,
|
||||||
o_29['t5']['t11'].data,
|
],
|
||||||
],
|
axis=0
|
||||||
axis=0
|
).prod(axis=0)
|
||||||
).prod(axis=0)
|
|
||||||
)[0]
|
|
||||||
pprint.pprint([t8.sum(), t8.mean()])
|
pprint.pprint([t8.sum(), t8.mean()])
|
||||||
ids = numpy.random.choice(
|
ids = numpy.random.choice(
|
||||||
t8,
|
numpy.where(t8)[0],
|
||||||
min(70, len(t8)),
|
min(70, len(t8)),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user