C2W1Assignment - Split_data function result

Hello @apple9855 ,

Your code isn’t correct.

At first I would suggest you to read the hints and instructions carefully, not only for this assignment, but for all. You need to understand it at first and do the steps sequentially as per the hint.

I am explaining to you what you need to do :

Create an empty list
Loop through all the files in the source directory
Check for file size >0 or not then print the given condition
Calculate the length of the training and validation sets based on the split size
Shuffle the list
Divide the into training set and validation set
Copy the files from the source directory to the training and validation directories

With regards,
Nilosree Sengupta

1 Like