def __init__(self): environment = EnvironmentManager() # Categories contiene la scelta delle feature (teen/notteen) (employed/notemployed) self.categories = environment.GetIndexedCategories() self.features = environment.features self.featureSpace = environment.featureSpace self.probabilities = np.array(environment.probabilities) self.possiblePrices = np.array(environment.prices) self.nArms = len(self.possiblePrices) self.expLogs = [] self.betaParams = [] self.week = -1
def __init__(self, budget=10, nArms=10, singlePrice=False): self.budget = budget self.nArms = nArms self.budgets = np.linspace(0.0, self.budget, self.nArms) environment = EnvironmentManager() self.phaseLabels = environment.phaseLabels self.phaseWeights = environment.GetPhaseWeights() self.featureLabels = environment.featureLabels self.clickFunctions = environment.clickFunctions self.sigma = environment.sigma self.categories = environment.GetIndexedCategories() self.features = environment.features self.featureSpace = environment.featureSpace self.personType = np.array(environment.probabilities) self.possiblePrices = np.array(environment.prices) self.singlePrice = singlePrice self.optSuperArmReward = self.RunClairvoyant() self.optRewardsPerExperiment = [] self.gptsRewardsPerExperiment = []