Skip to content

Should Incremental.partial_fit be concrete when handed numpy arrays? #234

Open

Description

@mrocklin

What should happen here?

sgd = skleran.SGDClassifier()
inc = Incremental(sgd)

X = np.array(...)
y = np.array(...)
inc.partial_fit(X, y)

Everything is concrete. Should we build things up lazily or should we execute directly using inc.estimator.partial_fit(X, y)?

Activity

  1. TomAugspurger commented on Jun 27, 2018

    @TomAugspurger
    Member

    What do you mean by

    build things up lazily

    ?

    The two interpretations I see are

    1. converting X and y to single-block dask arrays, and calling _partial.fit(model, X, y) on those dask arrays, which would be equivalent to just calling inc.estimator.partial_fit(X, y).
    2. Not calling fit at all, and returning a Delayed object instead?

    If you meant one, then I think we would want to just execute directly.

  2. mrocklin commented on Jun 27, 2018

    @mrocklin
    MemberAuthor

    I mean #236

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