Logistic Regression Gradient Calculation Issue with unit test- AssertionError

Hello community,

I’m currently facing an issue with my logistic regression implementation where I’m receiving an AssertionError in the unit test case:

while the expected values match. Is there a recommended approach for handling test cases that expect more values than the number of features in the model?

Your code must work for any size of data set and any number of features.
Check if you have hard-code any values that should be variables.

Thank you for your help! I understand it now :slightly_smiling_face: