[~] Refactor
This commit is contained in:
parent
cdc513dcb9
commit
8c78463d1b
@ -1850,14 +1850,16 @@ def kernel_30(
|
|||||||
10
|
10
|
||||||
)
|
)
|
||||||
elif ids == 'v1':
|
elif ids == 'v1':
|
||||||
|
t8 = numpy.where(
|
||||||
|
numpy.logical_and(
|
||||||
|
o_29['t5'].portion > 0.1,
|
||||||
|
o_29['t5'].mean_conf > 0.6
|
||||||
|
)
|
||||||
|
)[0]
|
||||||
ids = numpy.random.choice(
|
ids = numpy.random.choice(
|
||||||
numpy.where(
|
t8,
|
||||||
numpy.logical_and(
|
min(len(t8), 70),
|
||||||
o_29['t5'].portion > 0.1,
|
replace=False,
|
||||||
o_29['t5'].mean_conf > 0.6
|
|
||||||
)
|
|
||||||
)[0],
|
|
||||||
70
|
|
||||||
)
|
)
|
||||||
elif ids == 'v2':
|
elif ids == 'v2':
|
||||||
t8 = numpy.stack(
|
t8 = numpy.stack(
|
||||||
|
Loading…
Reference in New Issue
Block a user