Please ensure that image files of length 0 are not taken into consideration for the training / validation sets.
Here’s the function which should take care of this:
def split_data(SOURCE, TRAINING, TESTING, SPLIT_SIZE):
### START CODE HERE
pass
### END CODE HERE
2 files should be left out. Here’s the expected output:
666.jpg is zero length, so ignoring.
11702.jpg is zero length, so ignoring.
There are 11250 images of cats for training
There are 11250 images of dogs for training
There are 1250 images of cats for testing
There are 1250 images of dogs for testing