{moderator edit: code removed}
return idx
If you’re still stuck, you can check the hints presented below to figure out how to calculate norm_ij and idx[i].
Hint to calca()
This cell of code in not editable and is showing repeated errors.
Please Help
This line of code is corrupted. It should be
X=load_data()
There are cells that are not editable by students, such as those used for testing. When there is error in your code, the error message should help locate what the problem might be. Editing test cells would not help. Please check out the Hints which provided a step by steps guide on how to implement this function.
If further assistance is needed, please include error message in your posting.