... sum of all elements: pred = np.random.rand(3).round(2) pred_sum = pred.sum() In this example, pred is array([0.44, 0.03, 0.55]) Then pred_sum is the sum of ...
確定! 回上一頁