コード例 #1
0
	def setUp(self):
		self.cd_bl = IO.read(join(path[0], "conditional_dominance_BL.xml"))
		self.spd = IO.read(join(path[0], "strict_pure_dominance.xml"))
		self.cliques = IO.read(join(path[0], "cliques_full.json"))
		self.BC = RSG.Profile({"Column":{"Center":1},"Row":{"Bottom":1}})
		self.AAHL = RSG.Profile({"buyers":{"accept":2}, "sellers":{"high":1, \
				"low":1}})
コード例 #2
0
ファイル: yaml_builder.py プロジェクト: bcassell/GameAnalysis
def construct_game(input):
    options = input.get('options', {})
    if input['type'] == 'local_effect':
        game = RandomGames.local_effect_game(**options)
        RandomGames.rescale_payoffs(game)
    elif input['type'] == 'congestion':
        game = RandomGames.congestion_game(**options)
        RandomGames.rescale_payoffs(game)
    elif input['type'] == 'uniform':
        game = RandomGames.uniform_symmetric_game(**options)
        RandomGames.rescale_payoffs(game)
    elif input['type'] == 'file':
        game = Reductions.deviation_preserving_reduction(GameIO.read(input['file']), {'All': 6})
    return game
コード例 #3
0
	def setUp(self):
		self.one_player = IO.read(join(path[0], "one_player.xml"))
		self.one_strategy = IO.read(join(path[0], "one_strategy.xml"))
		self.one_profile = IO.read(join(path[0], "one_profile.xml"))
コード例 #4
0
	def setUp(self):
		self.cliques_full = IO.read(join(path[0], "cliques_full.json"))
		self.cliques_1 = IO.read(join(path[0], "cliques_HLRR.json"))
		self.cliques_2 = IO.read(join(path[0], "cliques_HLRR_HLAA.json"))
		self.cliques_4 = IO.read(join(path[0], "cliques_all_sym.json"))
		self.ss = IO.read(join(path[0], "sparse_symmetric.xml"))
コード例 #5
0
	def setUp(self):
		self.pd_sym = IO.read(join(path[0], "PD_sym.xml"))
		self.pd_str = IO.read(join(path[0], "PD_str.xml"))
		self.rps_sym = IO.read(join(path[0], "RPS_sym.xml"))
		self.rps_str = IO.read(join(path[0], "RPS_str.xml"))
コード例 #6
0
	def setUp(self):
		self.cd_bl = IO.read(join(path[0], "conditional_dominance_BL.xml"))
		self.cd_bc = IO.read(join(path[0], "conditional_dominance_BC.xml"))
		self.cd_br = IO.read(join(path[0], "conditional_dominance_BR.xml"))
		self.cd_bcr = IO.read(join(path[0],"conditional_dominance_BCR.xml"))
コード例 #7
0
	def setUp(self):
		self.cliques = IO.read(join(path[0], "cliques_full.json"))
コード例 #8
0
	def setUp(self):
		self.nbr = IO.read(join(path[0], "never_best_response.xml"))
		self.wpd = IO.read(join(path[0], "weak_pure_dominance.xml"))
		self.spd = IO.read(join(path[0], "strict_pure_dominance.xml"))
コード例 #9
0
	def setUp(self):
		self.spd = IO.read(join(path[0], "strict_pure_dominance.xml"))
		self.cd_br = IO.read(join(path[0], "conditional_dominance_BR.xml"))
		self.cd_bc = IO.read(join(path[0], "conditional_dominance_BC.xml"))
		self.wpd = IO.read(join(path[0], "weak_pure_dominance.xml"))
コード例 #10
0
	def setUp(self):
		self.pd = IO.read(join(path[0], "PD_sym.xml"))
コード例 #11
0
ファイル: yaml_builder.py プロジェクト: bcassell/GameAnalysis
def construct_model(stdev, input):
    options = input.get('options', {})
    if input['type'] == 'gaussian':
        return MultimodalNormalNoise(stdev, **options)
    if input['type'] == 'file':
        return SimulationBasedGame(Reductions.deviation_preserving_reduction(GameIO.read(input['file']), {'All': 6}))