You don't need to iterate through X and Y , numpy can broadcast the operations natively: np.log(np.array(X) + b * np.array(Y)).sum().
確定! 回上一頁