TEST1 ML&DL : train, validation, test 데이터로 나누기 code - 1 import sklearn def data_split(examples, labels, train_frac, random_state=None): ''' https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html param data: Data to be split param train_frac: Ratio of train set to whole dataset Randomly split dataset, based on these ratios: 'train': train_frac 'valid': (1-train_frac) / 2 'test': (1-train_frac) / 2 Eg: .. 2020. 2. 1. 이전 1 다음