easyiec.preference.GPPreference#

class easyiec.preference.GPPreference(lengthscale=None, signal=1.0, noise=0.5, optimize=True, jitter=1e-06, reoptimize_every=5)[source]#

Bases: PreferenceModel

Gaussian-process preference learning with a probit likelihood (Chu and Ghahramani, 2005).

Latent utilities \(f\sim\mathcal{GP}(0,k)\) with an RBF kernel; \(P(\mathbf x_v\succ\mathbf x_u)=\Phi\big((f_v-f_u)/(\sqrt2\sigma)\big)\). The posterior is approximated by Laplace’s method (Newton iterations for the MAP utilities); the length-scale can be chosen by the Laplace evidence.

Parameters:
lengthscalefloat, optional

RBF length-scale (default: 0.3 * sqrt(d) in the unit cube, or chosen from a grid when optimize=True).

signalfloat

Prior standard deviation of the utility.

noisefloat

Probit noise \(\sigma\).

optimizebool

Select the length-scale by the Laplace approximation of the evidence.

Examples using easyiec.preference.GPPreference#

Learning a utility from comparisons

Learning a utility from comparisons