Skip to content

Add how-to guide for API abstraction levels (NPE/NLE) #1757

Closed

Description

@dgedon

The existing documentation does not explicitly frame abstraction levels as a concept. Functionality for customizing inference is currently scattered across:

  • docs/tutorials/00_getting_started.ipynb - Basic usage only
  • docs/how_to_guide/03_density_estimators.ipynb - Customization with posterior_nn()
  • docs/advanced_tutorials/18_training_interface.ipynb - Custom training loops

Missing: A unified guide showing the progression from simple to advanced API usage and when to use each level.

Activity

  1. added
    docs
    on Feb 6, 2026
  2. Pratyusha-DS13 commented on Mar 19, 2026

    @Pratyusha-DS13

    Hi! I’m currently contributing to sbi for GSoC 2026 and have been working on documentation improvements.

    This looks like a really interesting and impactful addition. I’d love to contribute to it.

    I was thinking of starting by drafting a basic structure for the guide (e.g., outlining the different abstraction levels and linking existing tutorials), and then iterating further.

    Does that approach make sense, or would you recommend starting with a specific part?

    Thanks!

  3. dgedon commented on Mar 19, 2026

    @dgedon
    CollaboratorAuthor

    Hi @Pratyusha-DS13! Thanks for your interest. However, there is already a PR open for this issue (see #1758). So there is no work currently needed on this part.

  4. vamshi567bh commented on Mar 20, 2026

    @vamshi567bh

    @dgedon can I work on it

    for idea 2 the preparation

  5. janfb commented on Mar 20, 2026

    @janfb
    Contributor

    @dgedon can I work on it

    for idea 2 the preparation

    Hi @BharathC0 , thanks for offering your help here. Please read the comments above, the issue is already assigned and has an open PR.

  6. Pratyusha-DS13 commented on Mar 22, 2026

    @Pratyusha-DS13

    Hi @Pratyusha-DS13! Thanks for your interest. However, there is already a PR open for this issue (see #1758). So there is no work currently needed on this part.

    Got it, thanks for letting me know!

    I'll take a look at other open issues. Please let me know if there's anything similar where contributions would be helpful.

  7. janfb commented on Aug 11, 2026

    @janfb
    Contributor

    The guide exists: docs/how_to_guide/24_abstraction_levels.ipynb, added in
    PR #1758 and live in the documentation since then. Closing as done. Sorry that
    this stayed open for so long, two people offered to work on it while the guide
    was already published.

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

Metadata

Metadata

Assignees

Labels

docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions