It seems that round(np.sum(Y) * fraction) is returning a float value. In the random.sample(), the value of n should be an integer.
確定! 回上一頁