Rewrite function with lambda

后端 未结 0 1324
庸人自扰
庸人自扰 2020-12-03 07:03

I have written function:

def inters(obs_test, train_tbl):
    intersect_n = 0
    for i in train_tbl:
        intersect_n += ((obs_test * i).sum() / train_tbl         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题