I am receiving this message in my Grader output for Week1 (Large dataset - Cats vs Dogs lab). I am puzzled by the output. Any assistance is appreciated.
Message:
All tests passed for create_train_val_dirs!
Details of failed tests for split_data
Failed test case: There was an error grading this function. Details shown in ‘got’ value below:.
Expected:
no exceptions,
but got:
[Errno 2] No such file or directory: ‘./data/images-zero/cats/’.
All tests passed for train_val_generators!
Details of failed tests for create_model
Failed test case: There was an error grading this function. Details shown in ‘got’ value below:.
Expected:
no exceptions,
but got:
[Errno 2] No such file or directory: ‘./data/images/’.
Are you referring to the paths correctly?
Please keep in mind that grader tests exercise the split_data function via arguments and not via global variables when possible.
Thank you for your response. The output at each step matched the expected result. The graphs plotted were as expected. All results looked just fine. I still don’t understand what caused the failure in Grading. Please help.
Although you might have passed the trail val generator because you have used the usual recall of creating the directory but the grader wants you to follow the right codes (Balaji mentioned it as function ) as per the instructions given in the assignment.
What Balaji is mentioning you to follow the arguments the assignments/grader cells have given instructions to follow rather than creating directory by using generalized variable directory. That data/image-zero/cats statement is incorrect. Kindly use the search tool, type create data or split data tf course 2 week 1. You will find many similar post regarding how to create these grader cells about creating directory and split data as per the assignment instructions.
If you still don’t find, let us know. Will provide the link.
In such case share screenshot of your output with the expected output for comparison to Know where one could have gone wrong. Don’t include any of the codes in these image.
Thank you DP. I appreciate your response. I haven’t created any directories outside of the instructions. The logs at each step match 100%. I have enclosed a screenshot of what I saw when the code executed at split_data. You can see clearly that everything matches. split_data output .pdf (141.2 KB)
the pdf you shared shows your create directory code is incorrect.
Kindly click on my name and then message, to send your notebook assignment. Also make sure you download the assignment in ipynb format and then send me via personal DM.
Thanks DP. I reviewed my code and identified the cause of this error. Previously, I used chdir() function that was causing this grading issue. I noticed a different thread elsewhere in this discussion forum where someone else also had the exact same issue. I have now recoded that part excluding chdir and passed the grading.
I appreciate your help and every other Mentor’s inputs. We can consider this issue as resolved.
Glad you could find your solution by using discussion forum- search tool. Actually most issues we encounter in assignment, learners have already raised similar issue. So most of the time, I used to first use discussion forum, search for similar error post, and most of the time I used to find my solution by just following the comments by learner’s query and mentor suggestions.