# ERROR inProgramming Assignment: Deep Learning for Content-Based Filtering

**URL:** <https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540>\
**Category:** Unsupervised Learning, Recommenders, Reinforcement\
**Tags:** week-module-1\
**Created:** [October 16, 2023, 4:13am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540 "2023-10-16T04:13:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Lavanya\_M](https://avatars.discourse-cdn.com/v4/letter/_/8edcca/32.png) [@\_Lavanya\_M](https://community.deeplearning.ai/u/_Lavanya_M)\
**Post date:** [October 16, 2023, 4:13am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540/1 "2023-10-16T04:13:26Z")

</div>

Code Cell UNQ\_C2: Unexpected error (TypeError(“‘NoneType’ object is not callable”)) occurred during function check. We expected function `sq_dist` to return type \<class ‘bool’\>. Please check that this function is defined properly.  
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.  
This dependency may be the cause of the errors.  
What can I do

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [October 16, 2023, 4:59am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540/2 "2023-10-16T04:59:11Z")

</div>

Did you complete the code in the UNQ\_C2 cell?

---

<div class="post-metadata">

**Author:** ![\_Lavanya\_M](https://avatars.discourse-cdn.com/v4/letter/_/8edcca/32.png) [@\_Lavanya\_M](https://community.deeplearning.ai/u/_Lavanya_M)\
**Post date:** [October 16, 2023, 6:21am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540/3 "2023-10-16T06:21:53Z")

</div>

Yes sir. I completed

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [October 16, 2023, 6:35am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540/4 "2023-10-16T06:35:19Z")

</div>

Did you complete all of the parts of the entire notebook?

---

<div class="post-metadata">

**Author:** ![\_Lavanya\_M](https://avatars.discourse-cdn.com/v4/letter/_/8edcca/32.png) [@\_Lavanya\_M](https://community.deeplearning.ai/u/_Lavanya_M)\
**Post date:** [October 16, 2023, 7:44am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540/5 "2023-10-16T07:44:00Z")

</div>

yes sir i completed

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/165831_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [October 16, 2023, 10:33am UTC](https://community.deeplearning.ai/t/error-inprogramming-assignment-deep-learning-for-content-based-filtering/470540/6 "2023-10-16T10:33:31Z")

</div>

Hello Lavanya,

What Tom is trying to ask you is if you have recalled all the codes or missed any of the None object which needs to recalled with the correct code.

Your error log tells you have recalled your function with incorrect steps or missed calling the points and/or centroids that would create new centroids.

So go back again to your UNQC2 and see if you have recalled your codes correctly.

if you still cannot find, then send notebook/code for UNQC2 via personal DM. Click on my name and then message.

Regards  
DP
