要求:统计list weights['value']中满足条件的数的个数:
>=0、<0的个数分别是多少
解决方法:
np.sum(list(map(lambda x: x >= 0, weights['value'])))