Hello fellow scholars;
In W4 programming assignment, precisely in Exercise 4 the task is to compute the covariance matrix. The function I made works just fine and doesn’t appear to have any error proper to it per-se but the grader outputs the following error:
There was a problem grading your submission. Details:
list indices must be integers or slices, not str
is there a way to get around that, thank you everyone.
Can you confirm for grade cell in question you created any list which was not integer?? Your submission output is pointing to look if the datatype was integer
The most common type of mistake on that function is hard-coding assumptions about the dimensions of the inputs. I’m not coming up with an obvious example of how that type of error could generate that specific error message, but it’s the first thing to check. Make sure your code is general and is not making any unjustified assumptions about the inputs.