Skip to content

MNT, ENH: add support for sparse input to partial_fit() #75

@eiviani-lanl

Description

@eiviani-lanl

Ridge() method used by fit() supports sparse inputs by using scipy.sparse.linalg.cg as the solver. It would be nice to include this functionality in partial_fit(). On inspecting scipy.sparse.issparse(), it only checks the dtype of incoming data to determine sparsity so batching should not be a problem. As long as each of the batches maintains a consistent dtype (and I don't see a situation in which they wouldn't) this seems pretty safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions