`rp_contamination` and `isi_violations_ratio` should report an upper bound like `sliding_rp_violation` does
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with BaseMetricExtension._run, then locate the implementations of rp_violation, isi_violation, and sliding_rp_violation to reuse the latter's confidence-based upper-bound calculation. Add the two upper-bound columns and their confidence parameters, and make metric copying skip or fill absent saved columns with NaN while warning. Done means both metrics return the new columns and analyzers saved by older versions load without a KeyError.
索引モデルが issue の本文から書いたものです。
説明
The rp_violation metric computes two values/columns: rp_contamination and rp_violations.
The isi_violation metric computes isi_violations_ratio and isi_violations_count.
I am finding units with low values of rp_contamination and isi_violations_ratio that shouldn't be passing QC checks, because they don't have enough spikes to actually rule out contamination[^1]. sliding_rp_violation already handles this nicely by reporting the highest contamination (at a given confidence level, 90% by default) that the data can't rule out. An "upper bound" on possible contamination, so to speak. I think that the rp_violation and isi_violation metrics should get this, too.
Specifically, I propose having rp_violation compute a new third value/column rp_contamination_upper_bound, and having isi_violation compute a new third value/column isi_violations_ratio_upper_bound, obtained using the same method as sliding_rp_violation. They would get a new confidence parameter (0.9 by default, to match sliding_rp_violation).
There is only 1 non-trivial implementation detail that I anticipate: Adding a column to an existing metric currently breaks analyzers saved with older versions of SpikeInterface, because when more metrics are computed BaseMetricExtension._run copies the previously computed metrics into the new table column by column, using the columns each metric has now. When an expected column is not in the saved table, you get a KeyError (as in #5009). I suggest that a copy tolerate a missing column. Just copy the columns that are there, fill a missing one with NaN, and warn that the metric was computed by an older version and needs recomputing to fill the missing column. Or you could recompute automatically, but if the extensions it needs have been deleted then you're in a pickle -- so I would avoid that. Small gotcha is that filling with NaN means the column is a float, even if it will in the future (after recompute) be e.g. an integer. I don't see how/why that would be an issue.
So, in summary, I am proposing a PR with two parts (or two PRs, if preferred):
- Missing-column handling.
- Adding
rp_contamination_upper_boundandisi_violations_ratio_upper_boundcolumns to their respective metrics.
Thoughts?
@alejoe91 @samuelgarcia @chrishalcrow @JoeZiminski @h-mayorquin
[^1]: Violations are rare, so their count varies a lot by chance, and a heavily contaminated unit can easily appear to have no violations.
- 主要言語
- Python
- スター
- 883
- フォーク
- 291
- 平均マージ
- 3日 6時間
- マージ済み PR(30日)
- 39
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SpikeInterface/spikeinterface のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
SpikeInterface/spikeinterface#5008 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
SpikeInterface/spikeinterface#5007 ·
メンテナーはふだん 1 日以内に返信
-
`plot_unit_presence` shows bin indices on the `Time (s)` axis when `time_range` is not given対応中かも @Fireguy1 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
SpikeInterface/spikeinterface#5006 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
SpikeInterface/spikeinterface#5005 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
SpikeInterface/spikeinterface#5004 ·
メンテナーはふだん 1 日以内に返信
SpikeInterface/spikeinterface の issue をすべて見る
似ている issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgood first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores対応中かも @AshutoshSingh840 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
UKGovernmentBEIS/control-arena#992 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
mvalentsev/awesome-free-ai-coding#70 ·
メンテナーはふだん 1 日以内に返信