Hello,
you are getting error in split data because your code for * create_train_val_dirs where you need to define the path for your training and validation data is incorrect.
Kindly read the hint or instructions given in the assignment
< HINT:
< # Use os.makedirs to create your directories with intermediate subdirectories
<# Don’t hardcode the paths. Use os.path.join to append the new directories to the root_path parameter
You can read the below comment, in case you are not able to get the hint from the assignment
Regards
DP