Challenge - Air Pollution

I want to try implementing Multivariate Locally weighted regression on this problem. I wrote this code https://ide.codingblocks.com/s/118200 but when I try the output for the first row of test case it gives an error that dimensions of theta and x do not match.
Since in video, the multivariate case was not explained. How do I go about correcting this?

Hello @S18LPC-OL0076,

I have updated the code here. Now it seems working, although I havent properly went through your implementation, I have corrected the error that you reported.

Happy Learning :slight_smile:
Thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Hello @Manu-Pillai-1566551720093198,
Yes thanks it is cleared.
On a side note, could you direct/refer me to some material detailing on Multivariate Locally Weighted Regression ? The tutorials only cover the case of one feature. I was facing issues implementing the algorithms when multiple features are involved.

Hello @S18LPC-OL0076,

Implementing Multivariate Locally Weighted Regression is same as implementing multivariate linear regression. You can easily find an implementation on the internet. Medium is a good place to start looking for one.

Thanks :slight_smile: