How to select 2 of the outputs out of 3 outputs of a multi-task GP for qEHVI? #2415
-
| Hi, | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
| I believe you can use GenericMultiOutputObjective to convert a callable which simply indexes the first 2 outputs. def select(sample): objective = GenericMultiOutputObjective(select) Then pass objective to your aq function | 
Beta Was this translation helpful? Give feedback.
-
| Hi @sheikhahnaf. @kstone40's suggestion above should work. Here's another alternative that is built into the MultiTaskGP model. If you specify  | 
Beta Was this translation helpful? Give feedback.
Hi @sheikhahnaf. @kstone40's suggestion above should work. Here's another alternative that is built into the MultiTaskGP model. If you specify
output_tasks = [1, 2]while constructingMultiTaskGP, it will produce the posterior only for tasks 1 and 2. From there on, you can treat the model just like any other two-output GP in the acquisition functions.