Skip to content

Use tree reduction in da.bincount #4852

Closed

Description

@jakirkham

Currently da.bincount does a reduction over np.bincounts from each chunk. It would be nice to change this to use a tree reduction instead.

Activity

  1. jakirkham commented on May 31, 2019

    @jakirkham
    MemberAuthor

    This could be a fun task if it is interesting to you, @madsbk. Would provide an opportunity to learn about how reductions work in Dask and how to construct task graphs.

  2. mrocklin commented on May 31, 2019

    @mrocklin
    Member

    How important is it to do a tree reduction here? I understand the value of tree reductions generally, I'm mostly just curious about when this becomes awkward.

  3. mrocklin commented on May 31, 2019

    @mrocklin
    Member

    How important is it to do a tree reduction here? I understand the value of tree reductions generally, I'm mostly just curious about when this becomes awkward.

  4. jakirkham commented on May 31, 2019

    @jakirkham
    MemberAuthor

    Running bincount on the AOLLSM m4 dataset now is pretty slow. My hope is this would help speed it up, but I could be wrong about this.

  5. dankerrigan commented on Apr 30, 2020

    @dankerrigan

    If someone wants to pick this up, the next steps appear to be implementing a tree reduction and running some benchmarks to add to this conversation.

  6. jsignell commented on Apr 30, 2020

    @jsignell
    Member

    Did you ever get a chance to do some benchmarking on this @jakirkham?

  7. jakirkham commented on Apr 30, 2020

    @jakirkham
    MemberAuthor

    I’m no longer looking at this. That doesn’t mean it’s not useful to people using bincount. Just have different work today.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions