Is there a simpler way to split list into sublists randomly without repeating elements in python?

前端 未结 0 1891
长情又很酷
长情又很酷 2020-12-11 22:57

I would like to split a list into 3 sublists (train, validation, test) using pre-defined ratios. The items should be chosen to the sublists randomly and without repetition.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题