Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Speed up to Brain_Data.similarity #308

@ejolly

Description

@ejolly

We should swap our current code where we loop over flattened arrays in Brain_Data.similarity() to scipy.spatial.distance.cdist which is 2 orders of magnitude faster.

For example, correlating a 5,000 x 50,000 Brain with a 11 x 50,000 Brain takes ~2:30 min, but with cdist takes about ~ 12 seconds.

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