Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary:
This change updates the PosteriorTransform API to optionally accept features X in addition to the values Y (for evaluate()) or posterior (for forward()).

This aligns PosteriorTransform with MCAcquisitionObjective, which already accepts X to enable input-dependent objectives. The change enables use cases where posterior transformations need to depend on the input features explicitly.

Updates all posterior transform classes and callsites to accept / pass in X along with the posterior

Resolves #1548

Differential Revision: D89930506

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 30, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 30, 2025

@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89930506.

…torch#3117)

Summary:

This change updates the `PosteriorTransform` API to optionally accept features `X` in addition to the values `Y` (for `evaluate()`) or posterior (for `forward()`).

This aligns `PosteriorTransform` with `MCAcquisitionObjective`, which already accepts `X` to enable input-dependent objectives. The change enables use cases where posterior transformations need to depend on the input features explicitly.

Updates all posterior transform classes and callsites to accept / pass in X along with the posterior

Resolves meta-pytorch#1548

Differential Revision: D89930506
@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.99%. Comparing base (6bd7f6d) to head (8d8ee9a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3117   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         219      219           
  Lines       21253    21254    +1     
=======================================
+ Hits        21251    21252    +1     
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant