scikit-learn icon indicating copy to clipboard operation
scikit-learn copied to clipboard

ENH add sparse output to SplineTransformer

Open lorentzenchr opened this issue 3 years ago • 0 comments

Reference Issues/PRs

Fixes #20998.

What does this implement/fix? Explain your changes.

This PR adds argument sparse to SplineTransformer. Set to True, it returns a sparse csr matrix.

Any other comments?

This is available only for scipy >= 1.8. Further improvements will be possible with scipy 1.10 (extrapolate argument for BSpline.design_matrix).

lorentzenchr avatar Aug 08 '22 14:08 lorentzenchr