scikit-learn
scikit-learn copied to clipboard
ENH add sparse output to SplineTransformer
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).