in the last exercise from Logistic Regression in the Machine Learning Topic if got an Error.
I get the error LinAlgError: Singular Matrix when I want to extend the model. With the solution it does not work either, I get the same error
thanks for reaching out!
It seems that this error might appear if you have a matrix with a determinant of 0. Then finding the inverse of the matrix might produce an error, as we’re trying to divide by 0.
You can try and check if the input for your extended model. If there’s some mismatch in the number of parameters or the variables values, it might be what’s causing the issue.
Let us know how you get on!