Skip to content

average by bins option in benchmark plot_performances_vs_snr#3979

Merged
samuelgarcia merged 3 commits into
SpikeInterface:mainfrom
samuelgarcia:plot_bench
Jun 16, 2025
Merged

average by bins option in benchmark plot_performances_vs_snr#3979
samuelgarcia merged 3 commits into
SpikeInterface:mainfrom
samuelgarcia:plot_bench

Conversation

@samuelgarcia
Copy link
Copy Markdown
Member

No description provided.

@alejoe91
Copy link
Copy Markdown
Member

Nice! @samuelgarcia can you add a screenshot of how it looks?

@alejoe91 alejoe91 added this to the 0.103.0 milestone Jun 11, 2025
@samuelgarcia
Copy link
Copy Markdown
Member Author

Sometime the sigmoid fitting is wrong so an average by bin is better for benchmarks.
image

@alejoe91 alejoe91 added the benchmarks Related to benchmarks module label Jun 12, 2025
Copy link
Copy Markdown
Member

@zm711 zm711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused by on the on-off? So if I set

with_sigmoid_fit=True
show_average_by_bin=True

what happens? Both are plotted? Or should only one at a time be possible? In which case you could do an if-elif-else right? Or check that only one of them is true?

@samuelgarcia
Copy link
Copy Markdown
Member Author

Having both
with_sigmoid_fit=True
show_average_by_bin=True
is mainly to check that the fitting is bad comparing to the average by bins (or the reverse).
Having both curbe on the final same plots is non sens of course.

@zm711
Copy link
Copy Markdown
Member

zm711 commented Jun 16, 2025

Then my concern is that an end-user will do both and not be able to interpret them appropriately. Should we account for that? I guess you're wanting to be able to do both for the debugging purposes/checking purposes, but I think we should at least in that case mention in the docstring that one should pick the better model and use that for final plots.

@yger yger self-requested a review June 16, 2025 12:48
@samuelgarcia
Copy link
Copy Markdown
Member Author

The "end user" here is mostly a sorter developer.
I think it is convinient to have both curves sometimes.

@samuelgarcia
Copy link
Copy Markdown
Member Author

@zm711 we need some merges now to fix several branch.

@samuelgarcia samuelgarcia merged commit 5cae402 into SpikeInterface:main Jun 16, 2025
13 of 15 checks passed
@samuelgarcia samuelgarcia deleted the plot_bench branch July 29, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks Related to benchmarks module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants