摘要: 论文中Gini系数的计算 ``` def cal_sparsity(x): # print(x.shape) n=x.shape[0] # x=x.reshape(x.shape.prob) x=x.abs() x,_=x.sort() # print(x) Gx=0 for k in range( 阅读全文
posted @ 2023-07-17 17:29 zyx_45889 阅读(203) 评论(0) 推荐(0) 编辑