JuliaAI / JuliaAI/MLJTransforms.jl
Make `InteractionTransformer` more useful
@ablaom is already working on this.
Since Sep 15, 2026.
- Dominant language
- Julia
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
If features are x, y, z, then this transformer only generates (with order=3) columns for x, y, z, xy, yz, xz, xyz, ie, no feature appears with degree higher than one, and there is no constant term. I suppose that is what "interaction" means?
But what about the common use case of polynomial regression on a single feature? You want 1, x, x^2, x^3, which this transformer won't give.
Perhaps we can add a parameter interaction=true which when false adds all the monomials up to specified order.
cc @olivierlabayle
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.