# C3M1 - Unexpected arguments error

**URL:** <https://community.deeplearning.ai/t/c3m1-unexpected-arguments-error/887257>\
**Category:** PyTorch: Advanced Architectures and Deployment\
**Tags:** week-module-1, dl-ai-learning-platform\
**Created:** [January 16, 2026, 6:43pm UTC](https://community.deeplearning.ai/t/c3m1-unexpected-arguments-error/887257 "2026-01-16T18:43:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nevermnd](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/nevermnd/32/126021_2.png) [@Nevermnd](https://community.deeplearning.ai/u/Nevermnd)\
**Post date:** [January 16, 2026, 6:43pm UTC](https://community.deeplearning.ai/t/c3m1-unexpected-arguments-error/887257/1 "2026-01-16T18:43:53Z")

</div>

Hi, I’m having an unexpected arguments error and am not what is causing it to occur. I should be calling for anchor\_label correctly.

If I try to remove anchor\_label from the function call it gives me the opposite error (i.e. at least one parameter is required). Missing this is keeping me from completing the assignment in full.

 ![Screenshot 2026-01-16 at 1.37.57 pm](https://global.discourse-cdn.com/dlai/original/3X/a/f/af1ae346fbef9bcda50b3555bb880b04bdc88735.png)

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [January 16, 2026, 6:47pm UTC](https://community.deeplearning.ai/t/c3m1-unexpected-arguments-error/887257/2 "2026-01-16T18:47:29Z")

</div>

for which exercise did you encounter this error?

Also kindly post screenshot of complete error. if the error is too lengthy then take two separate screenshots and post them.

You using incorrect function for indices of all the anchor labels, it should be **self.labels\_to\_indices** and not **self.get\_labels\_to\_indices**

screenshot hint from exercise

 ![Screenshot_20260117_002054_Chrome](https://global.discourse-cdn.com/dlai/original/3X/7/9/796838c6a3626e0fc24d6ae73732b35c0ab34958.jpeg)
