def __init__(self, real, simulator, expParams, searchParams): self.Real = real self.Simulator = simulator self.ExpParams = expParams self.SearchParams = searchParams if (self.ExpParams.AutoExploration): self.SearchParams.ExplorationConstant = 1 MCTS.InitFastUCB(self.SearchParams.ExplorationConstant)
def __init__(self,real,simulator,outputFile, expParams, searchParams): self.Real = real self.Simulator = simulator self.OutputFile= outputFile self.ExpParams = expParams self.SearchParams = searchParams self.Results = RESULTS.RESULTS() if (self.ExpParams.AutoExploration): if (self.SearchParams.UseRave): self.SearchParams.ExplorationConstant = 0 else: self.SearchParams.ExplorationConstant = simulator.GetRewardRange() MCTS.InitFastUCB(self.SearchParams.ExplorationConstant)