Skip to content

Switch to kernel for local CAR#4454

Open
alejoe91 wants to merge 11 commits intoSpikeInterface:mainfrom
alejoe91:local_car
Open

Switch to kernel for local CAR#4454
alejoe91 wants to merge 11 commits intoSpikeInterface:mainfrom
alejoe91:local_car

Conversation

@alejoe91
Copy link
Member

Following up on #4412

Added a "kernel" mode for local CAR: when computing the common average referencing, we can simply pre-compute a kernel with 1/local_neighbors for each channel and use it in the get_traces with a simple dot product, skipping an inefficient channel loop.

This makes the get_traces x10 faster (added a skipped test to test locally):

Local CMR time: 11.6428 seconds
Local CAR time: 1.3863 seconds

@alejoe91 alejoe91 added the preprocessing Related to preprocessing module label Mar 17, 2026
@alejoe91 alejoe91 added this to the 0.104.0 milestone Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preprocessing Related to preprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants