Skip to content

Adapt MNLE to new DensityEstimator abstraction #968

Closed

Description

@janfb

Problem

MNLE is a variant of NLE, tailored to cases where x is discrete and continuous. It has its down density estimator, MixedDensityEstimator living here:

https://github.com/sbi-dev/sbi/blob/main/sbi/neural_nets/mnle.py

It would be nice to add MNLE to the new DensityEstimator abstraction, see #966 and #957. Otherwise we would need to handle it differently in the Posterior classes.

Solution

Let MixedDensityEstimator inherit from DensityEstimator and maybe move it to the designated module. The CategoricalNet is also a density (or rather mass) estimator. So it should be treated similarly.

Activity

  1. added
    hackathon
    architecture
    on Feb 29, 2024
  2. added this to the Hackathon 2024 milestone on Feb 29, 2024
  3. self-assigned this
    on Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

architecturehackathon

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions