Skip to content

Estimator abstractions #966

Closed
Closed

Description

@manuelgloeckler

We currently only have the DensityEstimator abstraction, but we might want to expand this for other approaches. I would suggest something like this:

class Estimator(nn.Module):
    def loss(...)

class DensityEstimator(Estimator)
    def sample(...)
    def log_prob(...)
    def sample_and_log_prob(...)

class RatioEstimator(Estimator)
    def log_ratio(...)    ( Not sure, depends on what we need, here)

class ScoreEstimator(Estimator)
    def score(...)

The different Posterior Classes will implement the sample and log_prob methods anyway and must be adapted to support different estimators internally (if possible).

Activity

  1. added
    enhancement
    hackathon
    on Feb 28, 2024
  2. added this to the Pre Hackathon 2024 milestone on Feb 29, 2024
  3. removed their assignment
    on Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementhackathon

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions