C3_W2_Collaborative_RecSys_Assignment problema

If you planned to FINISH the first bracket, and then FINISH the second bracket, and then sum them up, there should have been three steps only. However, interestingly, from your prints, you had four steps. Why don’t you literally FINISH one bracket at a time, such that after the sum, you won’t do any additional thing?

I can’t tell you where the bug is since it’s your problem to solve. My suggestion is, for that exercise,

  1. Backup your current code
  2. Remove your current code from the lab. If you cannot fix the current code, then give us a new chance.
  3. Forget about how you implemented it previously. Give us a new start instead of a straight way to repeat the same mistake.
  4. From now on, forget about all simplification tricks. No tricks. Just one bracket after another.
  5. Implement the first bracket
  6. Move the cursor to the end of the last line of code for the first bracket, then press enter twice to make sure the second bracket begins COMPLETELY AFTER the code for the first bracket.
  7. Implement the second bracket
  8. Implement the sum

Let’s see what will happen.

Raymond

PS1: My steps 1 to 3 are one general way to get out from a code trap set up by our own belief that our code is correct or reasonable, when nobody can tell us the answer. It works better if we can give ourselves a break before starting, so that we can refresh ourselves.

1 Like