-
Notifications
You must be signed in to change notification settings - Fork 226
Refactor metrics into its own module #4183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
alejoe91
wants to merge
31
commits into
SpikeInterface:main
Choose a base branch
from
alejoe91:refactor-metrics
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
8793229
wip: start big metric refactoring
alejoe91 f71ae91
wip
alejoe91 b7445be
template metrics done!
alejoe91 83b8de2
remove template_metrics_old
alejoe91 a38cfa2
wip quality metrics
alejoe91 bbdd974
wip
alejoe91 bf4e24c
Fix metric dtypes and template metric tests
alejoe91 50bf11f
update tests
alejoe91 983e5d5
Fix (core) tests
alejoe91 e4f2cfe
Remove pandas from template tests
alejoe91 6602f17
Add metrics_to_compute params (but need to check behavior)
alejoe91 5c55124
Fix markers and start docs refactor
alejoe91 13e1ef9
Clean up CI and [metrics] install
alejoe91 5ee3085
Update src/spikeinterface/core/sortinganalyzer.py
alejoe91 0b4aa0e
Fixes after code review
alejoe91 cdc4e18
wip docs
alejoe91 79461b5
more docs!
alejoe91 07ba325
debug pca tests
alejoe91 f2c2449
Merge branch 'main' of github.com:SpikeInterface/spikeinterface into …
alejoe91 40b9d00
handle deprecated modules
alejoe91 420e879
Use explicit get_*_params functions
alejoe91 daed30e
Remove comment
alejoe91 26791f4
wip: fix required extensions and tests
alejoe91 b10dcea
Remove _set_data
alejoe91 fc02101
Add common _cast_metrics and fix most tests
alejoe91 6adef7e
expose seed param for nn_advanced
alejoe91 206412a
Fix curation tests
alejoe91 8b66f51
Fix docs
alejoe91 415e642
Update overview diagram
alejoe91 f3eb9c6
Compute spike amplitudes for IBL export tests
alejoe91 90300a1
Unify mahlanobis metrics in docs
alejoe91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| Metrics | ||
| ------- | ||
|
|
||
| The :py:mod:`~spikeinterface.metrics` module includes functions to compute various metrics related to spike sorting. | ||
|
|
||
| Currently, it contains the following submodules: | ||
|
|
||
| - **template metrics**: Computes commonly used waveform/template metrics. | ||
| - **quality metrics**: Computes a variety of quality metrics to assess the goodness of spike sorting outputs. | ||
| - **spiketrain metrics**: Computes metrics based on spike train statistics and correlogram shapes. | ||
|
|
||
|
|
||
| .. toctree:: | ||
| :caption: Metrics submodules | ||
| :maxdepth: 1 | ||
|
|
||
| metrics/template_metrics | ||
| metrics/quality_metrics | ||
| metrics/spiketrain_metrics | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.