Skip to content

Partial_fit for Preprocessing StandardScaler #5028

Closed

Description

@mwalkup55

A cool feature for the standardscaler (And other preprocessors) would be a partial_fit option. This would work well with existing out-of-core learning tools (i.e. SGDClassifer's partial_fit). If I can't load the data into memory, I can't use the standardscaler, and I end up calculating the mean and std in batches. That works fine, but it isn't very elegant.

Activity

  1. giorgiop commented on Jul 27, 2015

    @giorgiop
    Contributor

    I plan on contributing this in the next few weeks, within my internship period at INRIA working on sklearn.

  2. amueller commented on Jul 28, 2015

    @amueller
    Member

    Cool :)

  3. amueller commented on Jul 28, 2015

    @amueller
    Member

    Maybe look at #3639 and / or talk to @untom about how to best do this for all scalers if possible. Standard and MinMax and MaxAbs should all be trivial.

  4. untom commented on Jul 29, 2015

    @untom
    Contributor

    I agree. I don't see how this could best be done for RobustScaler, but the rest should be easy. If any help is needed, just ping me.

  5. amueller commented on Jul 29, 2015

    @amueller
    Member

    For robust scaler, this could probably be done approximately by binning, we don't really need to do that now, though.

  6. giorgiop commented on Aug 10, 2015

    @giorgiop
    Contributor

    I have opened #5104

  7. MechCoder commented on Oct 20, 2015

    @MechCoder
    Member

    This can be closed?

  8. giorgiop commented on Oct 20, 2015

    @giorgiop
    Contributor

    Definitely.

  9. talipini commented on Jul 31, 2019

    @talipini

    Hi - I am trying to find a way to do partial_fit on RobustScaler. Reading through this discussion and the merged code, it looks like RobustScaler doesn't have partial_fit. I need to use RobustScaler due to outliers but running into memory issues. Do you have any suggestions to do partial_fit on RobustScaler? Appreciate any help

  10. zaccharieramzi commented on Dec 4, 2024

    @zaccharieramzi
    Contributor

    @amueller I am also very much interested in partial_fit for RobustScaler

    I created a separate issue to discuss it #30408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions