Preference-based data records which alternative is preferred over another, such as f(x₁) > f(x₂), without revealing either alternative’s numerical objective value. This is useful when evaluating an expensive black-box objective is difficult but comparisons remain practical. section 10.3
A Gaussian process can be updated exactly from numerical observations, but conditioning on pairwise comparisons produces a non-GP posterior. A practical approximation therefore selects the GP with the greatest likelihood for the observed comparisons, preserving compatibility with Bayesian optimization policies. section 10.3
from botorch.models.pairwise_gp import PairwiseGP, #1 PairwiseLaplaceMarginalLogLikelihood #1 from botorch.fit import fit_gpytorch_mll #1 model = PairwiseGP(train_x, train_comp) #2 model.covar_module.raw_outputscale.requires_grad_(False) #3 mll = PairwiseLaplaceMarginalLogLikelihood(model) #4 fit_gpytorch_mll(mll); #5
Train a preference model with BoTorch’s PairwiseGP, construct its Laplace marginal log likelihood, and fit the model. section 10.3
