Posted 2023-05-10Updated 2025-02-23a few seconds read (About 37 words) visitssklearnSome basic operationShuffle the training set for hold out validation12from sklearn.utils import shuffletraining_set,dev_set = np.split(shuffle(data_sample_35),[25]) Also capable of spliting training set, validation(development) set, test set sklearnhttp://chen-yulin.github.io/2023/05/10/[OBS]Python-sklearn/AuthorChen YulinPosted on2023-05-10Updated on2025-02-23Licensed under#pythonsklearnnumpy