[~] Refactor
This commit is contained in:
parent
3f3ccea2c8
commit
5804aad78f
@ -1748,12 +1748,28 @@ def kernel_29():
|
|||||||
|
|
||||||
def kernel_30(o_29, ids=None, delay=None,):
|
def kernel_30(o_29, ids=None, delay=None,):
|
||||||
t5 = o_29['t5']
|
t5 = o_29['t5']
|
||||||
|
|
||||||
|
if delay is None:
|
||||||
|
delay = 200
|
||||||
|
|
||||||
if ids is None:
|
if ids is None:
|
||||||
numpy.random.seed(0)
|
numpy.random.seed(0)
|
||||||
ids = numpy.random.choice(
|
ids = numpy.random.choice(
|
||||||
t5.index.shape[0],
|
t5.index.shape[0],
|
||||||
10
|
10
|
||||||
)
|
)
|
||||||
|
elif ids == 'v1':
|
||||||
|
ids = =numpy.random.choice(
|
||||||
|
numpy.where(
|
||||||
|
numpy.logical_and(
|
||||||
|
o_29['t5'].portion > 0.1,
|
||||||
|
o_29['t5'].mean_conf > 0.6
|
||||||
|
)
|
||||||
|
)[0],
|
||||||
|
70
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
assert isinstance(ids, numpy.ndarray)
|
||||||
|
|
||||||
t7 = []
|
t7 = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user