Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在训练和测试中分割数据,但不是随机的。我希望前 80% 的行应该被视为训练,而其余的行应该被视为测试。
rows=nrow(data) index=0.80*row train=data[1:index]
有人可以帮忙吗?