If you do face this error message “Grader ran out of memory while grading the submission. Please contact support or wait for 24 hours to submit” from the grader’s output, comment in this thread if it is still not solved after 24 hours and we will figure out a way to get it solved.
Edit (26th October 2020, 10 PM PST) :
The num_examples should be 500 to avoid the memory issues. If you have loaded the notebook before 26th October 10PM PST, please either edit the value to 500 in that cell or do a clean pull of a new notebook by clicking on Lab Help on top right of your notebook.
Not a run out of memory error, but a too many values to unpack error in cell 3. This should not be the case though since all tests pass. I am using the with_info flag and not the as_supervised flag. Very frustrating (using the as_supervised flag throws an error in the mapped function later)
please check the dataset version that you are using.
Remember to use cats_vs_dogs:4.*.* as dataset because 4.0 support the new Splits API and check the splits list once again, if it doesn’t resolve the issue please attach a code snippet of the entire cell so that we can help you out better
ValueError: too many values to unpack (expected 2)
For this what is happening is, if we are not using with_info flag, it won’t return any info, so in that case, where you use as_supervised or not, removing info variable will work, because it won’t be returning that.
Hope this clears it up. I have used the same code you posted.
Thank You.
If you use the as_supervised flag it changes the shape of your return sets since they will now have the additional label. This breaks the mapped function in a later cell. The over arching issue is with the auto grader, if you alter anything that is not explicitly marked as “add code here” then you potentially break the auto grader and still get a failure. What I do not understand here is when I have two return variables, and I only pass the with_info flag, I should get two return variables. The auto grader is saying that I have more than that.
For cell 5, when using the with_info and as_supervised flags in cell 3 we get another error:
“(Solution code removed by mentor, as displaying it is against honour code)”
Ok, ok, this is the most ridiculous thing ever. I had created another notebook as a copy of the original notebook and trying to submit that notebook was the problem.
Can you check my submission? It says Cell #5. Can't compile the student's code. Error: InvalidArgumentError() I have been waited for 24 hours from the first submission. How can I resolve this problem?
Apologies, can’t say I’ve waited 24 hours and it may be completely unrelated to memory, but I have the same issue as Jiwon_Kim1 on this assignment. It may be a PEBCAK issue, but if I could at least get guidance on which cell #5 is, that may help. Cell 5 appears to me to be one without any expected student changes. But maybe it’s only counting code cells?
Sorry to bump this so long after it was created as well
Untuk menghitung jumlah elemen dalam dataset tanpa menggunakan list(), kita gunakan cara ini:
num_train_examples = sum(1 for _ in train_examples)
num_validation_examples = sum(1 for _ in validation_examples)
num_test_examples = sum(1 for _ in test_examples)