Last answered:

04 Jan 2021

Posted on:

27 Dec 2020

0

Machine Learning Logistic Regression Testing Exercise

Hi, 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
1 answers ( 0 marked as helpful)
Instructor
Posted on:

04 Jan 2021

0
Hi Jakob,  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!   Best,  365 Eli

Submit an answer