All Questions
1 question
1
vote
0
answers
69
views
How can I split the data into training and validation sets such that entries with a certain value are kept together?
I have the following kind of data frame. These are just example:
A 1 Normal
A 2 Normal
A 3 Stress
B 1 Normal
B 2 Stress
B 3 Stress
C 1 Normal
C 2 Normal
C 3 Normal
...