dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
857 stars 157 forks source link

compatibility with scipy sparse matrices? #279

Open jsh08 opened 3 years ago

jsh08 commented 3 years ago

Hi, I was wondering if LogisticGAM and GAM are built to take in scipy csr sparse matrices as the X array. Since the utils functions require forcing X to a 2D format and dtype to int or float, it seems that the sparse matrix ends up getting a numpy object type.