Doubt about lowess matrix multiplication

it is necessary to convert X & Y to matrices and then do matrix multiplication? or can we keep them as arrays and do dot product as we were taught till now?
will it change the result?

No, it is not necessary, but highly recommend!
A single matrix multiplication is so much faster than individual dot products (due to some hardware level optimizations done by numpy).

Also, as the models get more complex, working with matrices will reduce the coding effort, code complexity and increases the performance significantly.

Happy Learning!

1 Like

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.