# C3\_W2\_RecSysNN\_Assignment : Grading issue

**URL:** <https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153>\
**Category:** Unsupervised Learning, Recommenders, Reinforcement\
**Tags:** week-module-2\
**Created:** [October 3, 2022, 11:27pm UTC](https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153 "2022-10-03T23:27:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy6](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andy6](https://community.deeplearning.ai/u/Andy6)\
**Post date:** [October 3, 2022, 11:27pm UTC](https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153/1 "2022-10-03T23:27:01Z")

</div>

Hi.

I’ve completed the above assignment.

Within the assignment all tests were passed. However the assignment won’t complete the grading process. Would appreciate any help rectifying this.

I am getting the following error message:

Cell #5. Can’t compile the student’s code. Error: IndentationError(‘unexpected indent’, (‘/tmp/student\_solution\_cells/cell\_5.py’, 8, 12, ’ )\n’))  
Traceback (most recent call last):  
File “/home/www/app/grading/exceptions.py”, line 112, in handle\_solution\_errors  
yield {}  
File “/home/www/app/grading/abstract.py”, line 393, in \_grade  
context = compiled\_code.run(cell\_index=cell.index)  
File “/home/www/app/grading/submission/compiled\_code.py”, line 195, in run  
return list(self.\_code\_items.values())[cell\_num - 1].run()  
File “/home/www/app/grading/submission/compiled\_code.py”, line 54, in run  
return import\_module(self.import\_statement, items)  
File “/usr/local/lib/python3.7/importlib/ **init**.py”, line 127, in import\_module  
return \_bootstrap.\_gcd\_import(name[level:], package, level)  
File “”, line 1006, in \_gcd\_import  
File “”, line 983, in \_find\_and\_load  
File “”, line 967, in \_find\_and\_load\_unlocked  
File “”, line 677, in \_load\_unlocked  
File “”, line 724, in exec\_module  
File “”, line 860, in get\_code  
File “”, line 791, in source\_to\_code  
File “”, line 219, in \_call\_with\_frames\_removed  
File “/tmp/student\_solution\_cells/cell\_5.py”, line 8  
)  
^  
IndentationError: unexpected indent

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [October 4, 2022, 1:32am UTC](https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153/2 "2022-10-04T01:32:17Z")

</div>

Hello Andy @Andy6,

This error indicates that the function isn’t implemented correctly, but it is not uncommon. While it is your work to debug your code, we can provide some hints.

1. `Cell #5. Can’t compile the student’s code.` This says your cell #5 has a problem.
2. To find out which is cell #5, go to your notebook, click “Kernel” \> “Restart & Run All”
3. All code cells are then queued to run. As a cell finishes, a number will show up on the left like `In [1]`.
4. Wait until you see `In [5]`, then that’s the cell #5. I expect you to see more an error traceback beneath the cell #5.
5. You may or may not see this error message “IndentationError: unexpected indent”, but regardless of what message you see, google it to understand more.
6. [If you want to know how to indent correctly, you may check out this post.](https://community.deeplearning.ai/t/starting-your-python-journey/180689)

Good luck!

Raymond

---

<div class="post-metadata">

**Author:** ![Andy6](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andy6](https://community.deeplearning.ai/u/Andy6)\
**Post date:** [October 4, 2022, 2:10am UTC](https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153/3 "2022-10-04T02:10:33Z")

</div>

Thanks for your response and the guidance re finding the cell with the error (that’ll be useful in future!)

Here’s what I found:

- that cell was a pre-populated line of code that simply had to be run (no other user input).

- the code in that cell had executed and OUT [5] was populated. There was _ **no** _ traceback error presented.

- In my version the ) on the ‘pprint\_train’ function had been dropped down to the next line. Perhaps I pressed the return key with out shift when I was running it originally…?

- sorting that meant the grading completed when it was resubmitted.

Thanks again for your help.

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [October 4, 2022, 2:39am UTC](https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153/5 "2022-10-04T02:39:10Z")

</div>

So your work has passed the grader. Congratulations Andy!

I just want to point this out for future learners, that whenever they see an error message like `Cell #5. Can’t compile the student’s code` , it means something was wrong with the cell #5 in the assignment they had submitted.

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [October 4, 2022, 3:38am UTC](https://community.deeplearning.ai/t/c3-w2-recsysnn-assignment-grading-issue/214153/6 "2022-10-04T03:38:47Z")

</div>

Closed on October 4, 2022, 3:38am UTC


