Skip to content

Add input constructor harness#3206

Open
hvarfner wants to merge 3 commits into
meta-pytorch:mainfrom
hvarfner:export-D93790262
Open

Add input constructor harness#3206
hvarfner wants to merge 3 commits into
meta-pytorch:mainfrom
hvarfner:export-D93790262

Conversation

@hvarfner
Copy link
Copy Markdown
Contributor

Differential Revision: D93790262

Carl Hvarfner added 3 commits February 24, 2026 14:04
Summary:
New year's sprint task

Adds test harness infrastructure for acquisition function testing, including factory functions (make_mock_model, make_X, make_trained_gp), a spec dataclass (AcquisitionSpec), and test mixins. Analytic acquisition functions (EI, LogEI, PI, LogPI, UCB, PosteriorMean, PosteriorStandardDeviation) now use a shared AnalyticAcquisitionTestMixin for dtype, batch-shape, and output-shape tests.

Differential Revision: D93691051
Summary:
New year's sprint task

MC acquisition functions (qEI, qLogEI, qPI, qUCB, qSimpleRegret, qPSTD, qNEI, qLogNEI) now use a shared test harness for dtype, shape, and q-batch tests, x_pending etc.

Differential Revision: D93691036
Differential Revision: D93790262
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 24, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 24, 2026

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (4177a9a) to head (304d0b5).
⚠️ Report is 64 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3206      +/-   ##
==========================================
- Coverage   99.99%   99.98%   -0.01%     
==========================================
  Files         219      219              
  Lines       21417    21417              
==========================================
- Hits        21416    21414       -2     
- Misses          1        3       +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.

1 participant