2023-07-12 11:52:06 +00:00
|
|
|
import numpy as np
|
|
|
|
from scipy.stats import norm
|
|
|
|
|
|
|
|
|
|
|
|
class PreferenceExpectedImprovement:
|
2023-07-12 12:34:15 +00:00
|
|
|
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):
|
2023-07-12 11:52:06 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
def rejection_sampling(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def expected_improvement(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def update_user_preference_model(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def update_proposal_model(self):
|
|
|
|
pass
|