0

我想在训练和测试中分割数据,但不是随机的。我希望前 80% 的行应该被视为训练,而其余的行应该被视为测试。

rows=nrow(data)
index=0.80*row
train=data[1:index]

有人可以帮忙吗?

4

0 回答 0