Skip to content

Pull request for simulation-based inference tutorial notebook#355

Open
StevenDillmann wants to merge 14 commits intoLSST-strong-lensing:mainfrom
StevenDillmann:sbi-tutorial-branch
Open

Pull request for simulation-based inference tutorial notebook#355
StevenDillmann wants to merge 14 commits intoLSST-strong-lensing:mainfrom
StevenDillmann:sbi-tutorial-branch

Conversation

@StevenDillmann
Copy link

Pull request for simulation-based inference tutorial notebook, demonstrating how to use the sbi package for strong lensing inference, including diagnostics visualizations.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Aug 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.19%. Comparing base (57605b6) to head (9b9aab6).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #355      +/-   ##
==========================================
- Coverage   98.21%   98.19%   -0.02%     
==========================================
  Files          98       98              
  Lines        6485     6485              
==========================================
- Hits         6369     6368       -1     
- Misses        116      117       +1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -0,0 +1,451 @@
{
Copy link
Collaborator

@nkhadka21 nkhadka21 Aug 12, 2025

Choose a reason for hiding this comment

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

Maybe explain little bit more about SBI?


Reply via ReviewNB

@@ -0,0 +1,451 @@
{
Copy link
Collaborator

@nkhadka21 nkhadka21 Aug 12, 2025

Choose a reason for hiding this comment

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

Line #3.    # TODO: Change this to the path to the data folder on your machine

Might be good to put slsim code that you used to generate this data??


Reply via ReviewNB

Copy link
Author

Choose a reason for hiding this comment

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

Hi @nkhadka21, thank you for all your feedback. I addressed all issues except this one. Currently, I am just using a dataset from Sydney. Padma and I discussed generating a separate dataset for the tutorial, but this will take some time before I can change that. The main functionality will remain the same and users will just be able to use any dataset they created (from other notebook tutorials for example) and simply change the path to their data and run the notebook. I'll send in another PR soon.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for addressing my comments. If we put this notebook in the current version, it will look like a notebook for the application of SBI, not SLSim. So, I would really like to have the code that generates the data using SLSim, so that it will be a combination of both the SLSim and SBI notebooks. No hurry—please take your time.

@nkhadka21
Copy link
Collaborator

Hi @StevenDillmann , thank you very much for this PR! PR looks good. I have some minor comments. Please address them. Also, pre-commit is failing. Please fix it.

@StevenDillmann
Copy link
Author

Fixed pre-commit issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants