After reading this answer, I was wondering if there was any (fast) implementation of OLS with multiple variables implemented in polars?
Someone mentioned 'coordinate descent', I'm wondering if a polar implementation is available?
Thanks for your help!
There's an extension called
polars_ds
that does OLS. You just justpip install polars_ds
See cells 6 through 12 of the link for example usage. Here's just the simplest case copy-pasted
In that case the list output are the coefficients for
x1
andx2
respectively.