Skip to content

[Feature Request] Make PosteriorTransform API (optionally) take features X #1548

Open
@Balandat

Description

@Balandat

🚀 Feature Request

Allow the PosteriorTransform.evaluate() and PosteriorTransform.forward() (

@abstractmethod
def evaluate(self, Y: Tensor) -> Tensor:
r"""Evaluate the transform on a set of outcomes.
Args:
Y: A `batch_shape x q x m`-dim tensor of outcomes.
Returns:
A `batch_shape x q' [x m']`-dim tensor of transformed outcomes.
"""
pass # pragma: no cover
@abstractmethod
def forward(self, posterior: Posterior) -> Posterior:
r"""Compute the transformed posterior.
Args:
posterior: The posterior to be transformed.
Returns:
The transformed posterior object.
"""
pass # pragma: no cover
) to also accept the features X in addition to the values Y or posterior, respectively.

Motivation

See #1545

Additional context

This blocks on the input transform refactor - Until that is done, we tend to have the transformed X where we call the posterior_transform.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions