Skip to content

Use ModelListGP for composite functions #2274

Answered by saitcakmak
ToennisStef asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ToennisStef. ModelListGP is generally not designed to work with sub-models with different input features out of the box. When you evaluate a ModelListGP with test_X, each sub-model gets evaluated using the same test_X and the outputs are concatenated. In your case, test_X is batch x q x 3, so each sub-model has to support inputs of this shape.

One way to do this is to use the FilterFeatures input transform. This will filter only the desired columns from the original input for each model, and evaluate the model using the resulting input of lower dimension. A setup like this should work:

        model1 = SingleTaskGP(
                train_X=train_x["ei_MLGP_cf"][:,0:1],  # this is n_1 …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ToennisStef
Comment options

Answer selected by ToennisStef
Comment options

You must be logged in to vote
1 reply
@ToennisStef
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants