🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Anybody can ask a question
Anybody can answer
The best answers are voted up and moderated by our team

Machine Learning Logistic Regression Testing Exercise

Machine Learning Logistic Regression Testing Exercise

Super Learner

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 Answer

365 Team

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!
365 Eli