How are seeds meant to work in the quality metrics?

Open
#4,927 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
data

Research direction

Start by reading ComputeQualityMetrics._set_params and the compute_quality_metrics entry point, then compare how nn_advanced handles random seeds with sd_ratio. Check the prior discussion and implementation in issue #4183 to understand the intended behavior. Done looks like clarifying whether the seed is meant to affect metrics and aligning the implementation or API with that decision.

Written by the indexing model from the issue text.

Description

discussion

How are seeds meant to work in the quality metrics? I want to give sd_ratio a random seed, like nn_advanced has.

compute_quality_metrics(..., seed=0) has no effect on any metric.
ComputeQualityMetrics._set_params still accepts and stores seed , but it appears that nothing reads it.
I’m wondering if seeds are meant to be per-metric, and the extension’s seed is just a dead argument that I should remove.

@alejoe91 @chrishalcrow @samuelgarcia , it looks like you thought about this for #4183, which was the last time this code seems to have been touched.

Dominant language
Python
Stars
883
Forks
291
Avg merge
3d 17h
Merged PRs (30d)
40

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SpikeInterface/spikeinterface

All issues in SpikeInterface/spikeinterface

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.