Skip to content

[ENH] Use scipy.sparse for bsplines and tensors #408

@dswah

Description

@dswah

Instead of homegrown tensor-product.
This way we avoid materializing the dense model matrix for our model matrices

B-Splines

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.BSpline.html

Tensors

scipy.sparse.kron:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.kron.html

to replace:

def tensor_product(a, b, reshape=True):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions