Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support linear regression transform #401

Open
jonmmease opened this issue Sep 28, 2023 · 0 comments
Open

Support linear regression transform #401

jonmmease opened this issue Sep 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jonmmease
Copy link
Collaborator

DataFusion recently got support for linear regression aggregate functions (apache/datafusion#7211). Postgres and DuckDB also support these functions (I haven't looked into other dialects).

We can use these to implement the vega regression transform for type == "linear".

With a bit of manipulation, we should also be able to implement log(x) regression. I don't think the other regression types are expressible in terms of linear regression though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant