f = lambda x:((x-127.5)/127.5).astype('float32')
[Xs,Xt,x_test] = map(f,[Xs,Xt,x_test])
Xs,Xt,x_test = [((x-127.5)/127.5).astype('float32') for x in [Xs,Xt,x_test]]
B = [0 if x == 1 else x for x in value]
lambda for if in
最新推荐文章于 2024-02-18 19:29:22 发布