Repository navigation
Conversation
|
Hi @janfb , please have a look at this PR. Thanks! |
|
Thank you @Sumit6307 for creating this PR. I appreciate your initiative! However, as noted clearly in our contribution guidelines we see it as best practice to first create an issue to discuss a potential new feature or bug fix, before opening a PR. The idea is to prevent extra work on our side in case we are already working on something, and also on the contributor side. For example, with this PR, while it looks good overall, there exists already a comprehensive SBI benchmark (https://github.com/sbi-benchmark/sbibm) and we also have a minimal version of the benchmark internally in Thus, I will close this PR as duplicate. If you want to contribute on the benchmarking side, there is also an open issue on Another note: looking at the changes introduced in this PR, I can see that the benchmarking interface looks very similar to To be clear, I appreciate your intention to contribute to |
@janfb I apologize for not opening an issue first and for missing the existing work around sbibm and mini-sbibm. I understand now why discussing ideas beforehand is important and will make sure to follow the contribution guidelines going forward. I appreciate you pointing me to issue #1396 — I’ll take a closer look at mini-sbibm and the open benchmarking-related issues and continue contributing there. Thanks again for your time and for encouraging new contributors. |
|
Thanks for understanding @Sumit6307 . I will close this PR and I am looking forward to your comments under #1396 |
Summary
This PR introduces a new top-level module,
sbi.benchmark, designed to streamline the evaluation and comparison of simulation-based inference algorithms (NPE, FMPE, SNRE, etc.). It provides a standardized interface for defining tasks, running benchmarks, and visualizing performance metrics like C2ST.Motivation
Currently, benchmarking different solvers in
sbirequires writing custom loops to handle simulation, training, sampling, and metric computation. This leads to code duplication and inconsistent comparisons. This PR aims to:Key Features
1. New Module:
sbi.benchmark["NPE", "FMPE"]).2. Integration
sbi.utils.metrics(specifically c2st).sbi.inferencesolvers.Example Usage