Split train and dev set for each iteration