Skip to content

Conversation

jandylin
Copy link

@jandylin jandylin commented Oct 2, 2025

Summary:
LatentKroneckerGP requires train_X, train_T, and train_Y as input data, where train_X and train_T define the Cartesian product space and train_Y are the corresponding observations (with potentially missing values).

Ax provides the data as samples from the product space and we need to separate it into the individual factors.

For example, let X = [a, b, c] and T = [0, 1], then the full product space is {(a, 0), (a, 1), (b, 0), (b, 1), (c, 0), (c, 1)}. Ax would provide us with observations like

x1 = (a, 0), y1 = 1
x2 = (a, 1), y2 = 2
x3 = (b, 0), y3 = 3
x4 = (c, 1), y4 = 4

and we need to transform them into X = [a, b, c], T = [0, 1], and Y = [[1, 2], [3, nan], [nan, 4]] (note that y values for (b, 1) and (c, 0) are missing).

Differential Revision: D83781022

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

meta-codesync bot commented Oct 2, 2025

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

jandylin pushed a commit to jandylin/botorch that referenced this pull request Oct 3, 2025
…rch#3037)

Summary:

LatentKroneckerGP requires `train_X`, `train_T`, and `train_Y` as input data, where `train_X` and `train_T` define the Cartesian product space and `train_Y` are the corresponding observations (with potentially missing values).

Ax provides the data as samples from the product space and we need to separate it into the individual factors.

For example, let X = [a, b, c] and T = [0, 1], then the full product space is {(a, 0), (a, 1), (b, 0), (b, 1), (c, 0), (c, 1)}. Ax would provide us with observations like

x1 = (a, 0), y1 = 1
x2 = (a, 1), y2 = 2
x3 = (b, 0), y3 = 3
x4 = (c, 1), y4 = 4

and we need to transform them into X = [a, b, c], T = [0, 1], and Y = [[1, 2], [3, nan], [nan, 4]] (note that y values for (b, 1) and (c, 0) are missing).

Differential Revision: D83781022
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (2cc41dc) to head (f7c82f3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3037   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         216      216           
  Lines       20510    20530   +20     
=======================================
+ Hits        20506    20526   +20     
  Misses          4        4           

☔ 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.

…rch#3037)

Summary:

LatentKroneckerGP requires `train_X`, `train_T`, and `train_Y` as input data, where `train_X` and `train_T` define the Cartesian product space and `train_Y` are the corresponding observations (with potentially missing values).

Ax provides the data as samples from the product space and we need to separate it into the individual factors.

For example, let X = [a, b, c] and T = [0, 1], then the full product space is {(a, 0), (a, 1), (b, 0), (b, 1), (c, 0), (c, 1)}. Ax would provide us with observations like

x1 = (a, 0), y1 = 1
x2 = (a, 1), y2 = 2
x3 = (b, 0), y3 = 3
x4 = (c, 1), y4 = 4

and we need to transform them into X = [a, b, c], T = [0, 1], and Y = [[1, 2], [3, nan], [nan, 4]] (note that y values for (b, 1) and (c, 0) are missing).

Reviewed By: saitcakmak

Differential Revision: D83781022
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 26e96d4.

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 Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants