Split CSV into Train and Validation datasets (85%/15%)
Wed Dec 07 2022 08:28:42 GMT+0000 (UTC)
Saved by @edubrigham #python #datasets #split #train #validation
I used following chatGPT input to generate this code snippet: to be able to train a ML model using the multi label classification task, i need to split a csv file into train and validation datasets using a python script. the ration should be 85% of data in the train dataset and 15% in the validation set. the split datasets should contain the same number of labels. write the resulting datasets into 2 csv files called train.csv and valid.csv
https://chat.openai.com/chat
Comments