import numpy as np from scipy.stats import norm class PreferenceExpectedImprovement: def __init__(self, nr_samples, upper_bound, lower_bound, nr_dims=2): self.nr_samples = nr_samples self.upper_bound = upper_bound self.lower_bound = lower_bound self.user_model = None self.proposal_model_mean = np.array() def initialize(self): pass def rejection_sampling(self): pass def expected_improvement(self): pass def update_user_preference_model(self): pass def update_proposal_model(self): pass