Great explanation of ridge regression. Thank you. Just wondering what if a bunch of x variables has binary values (0,1), would I still have to standardize the data? And also - could you also talk about applying similarity matrix in ridge regression… thank you.
Hello. I want to implement the ridge regression method on a small dataset. but I want to get it by solving the model manually (by hand). How can I do it? I will be glad if you can help.
Hi vick! Isnt it true that if explainabilty of target variable interms of equation is the goal then multicollinearity is an issue. However, if prediction is the goal then multicollinearity is not an issue.
great video, thank you for a great explanation of the ridge regression, however at the step of test_X @ B i am getting at error : "matrices are not aligned", i would be extremely greatful if you could send me a solution to this problem , thanks
It looks like your matrices don't have the right shapes to be multiplied. The full code is here, so you can check where the issue is in your code - github.com/dataquestio/project-walkthroughs/tree/master/ridge_regression .
@@Dataquestio This is the best instruction I have found on Ridge Regression, so thank you. However, I am having the same error (ValueError: matrices are not aligned). I looked over the code on github and have not been able to solve this problem. My dataframe has 9 variables (10 columns) x 80 rows. Any other suggestions to get past this error?
I am of the opinion that the sentence "B = np.linalg.inv(X.T@ X + penalty)@ X.T @ y" is creating this problem of matrix multiplication , kindly check....
This is amazing. Better explanation than my professor.
How does this video not have a million views?
I love the way the best alpha value is extracted
Thanks for the video!
Great explanation of ridge regression. Thank you. Just wondering what if a bunch of x variables has binary values (0,1), would I still have to standardize the data?
And also - could you also talk about applying similarity matrix in ridge regression… thank you.
Awesome. Subscribed. Could you do a video on LASSO, and another on LogisticRegression?
Hi. Thanks for this amazing video. Is there any video about Lasso Regression?
Hi Colin - I don't have anything for lasso yet, but might work on it in the future. -Vik
Hello. I want to implement the ridge regression method on a small dataset. but I want to get it by solving the model manually (by hand). How can I do it? I will be glad if you can help.
Hi vick!
Isnt it true that if explainabilty of target variable interms of equation is the goal then multicollinearity is an issue. However, if prediction is the goal then multicollinearity is not an issue.
Hi Sumit - in cases of multicollinearity, ridge regression will give you better predictions on out-of-sample data (test data) than linear regression.
Hey ! can i habe the codes for def ridge_fit() and def ridge_predict() ?
Thanks a lot!
great video, thank you for a great explanation of the ridge regression, however at the step of test_X @ B i am getting at error : "matrices are not aligned", i would be extremely greatful if you could send me a solution to this problem , thanks
It looks like your matrices don't have the right shapes to be multiplied. The full code is here, so you can check where the issue is in your code - github.com/dataquestio/project-walkthroughs/tree/master/ridge_regression .
@@Dataquestio This is the best instruction I have found on Ridge Regression, so thank you. However, I am having the same error (ValueError: matrices are not aligned). I looked over the code on github and have not been able to solve this problem. My dataframe has 9 variables (10 columns) x 80 rows. Any other suggestions to get past this error?
this youtube channel is pure BS
I am of the opinion that the sentence "B = np.linalg.inv(X.T@ X + penalty)@ X.T @ y" is creating this problem of matrix multiplication , kindly check....