asrman
For life, for speech-related research
Tuesday, September 1, 2015
python - How to split data into trainset and testset randomly? - Stack Overflow
python - How to split data into trainset and testset randomly? - Stack Overflow
: "= f.read().split('\n')
random.shuffle(data)
train_data = data[:50]
test_data = data[50:]"
'via Blog this'
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment