@@ -927,61 +927,10 @@ def test_regrets_tmp():
927927
928928
929929def test_regrets_tmp2 ():
930-
931930 g = games .create_3_player_with_internal_outcomes_efg ()
932-
933931 prof_data_rat = [[[1 , 0 ], [1 , 0 ]], [[1 , 0 ], ["1/2" , "1/2" ]], [[1 , 0 ], [0 , 1 ]]]
934932 profile_rat = g .mixed_behavior_profile (rational = True , data = prof_data_rat )
935933 print ()
936934 print (profile_rat .max_regret ()) # 3/2
937- # print(profile1.max_regret()) # same
938935 profile_rat = g .mixed_behavior_profile (rational = True , data = prof_data_rat )
939936 print (profile_rat .max_regret ()) # now different! 0
940- print ("=======================================" )
941-
942- prof_data_doub = [[[1 , 0 ], [1 , 0 ]], [[1 , 0 ], [0.5 , 0.5 ]], [[1 , 0 ], [0 , 1 ]]]
943- profile_doub = g .mixed_behavior_profile (rational = False , data = prof_data_doub )
944- print ()
945- print (profile_doub .max_regret ())
946- # print(profile1.max_regret()) # same
947- profile_doub = g .mixed_behavior_profile (rational = False , data = prof_data_doub )
948- print (profile_doub .max_regret ())
949- print ("=======================================" )
950-
951- prof_data_rat = [[[1 , 0 ], [1 , 0 ]], [[1 , 0 ], ["1/2" , "1/2" ]], [[1 , 0 ], [0 , 1 ]]]
952- profile_rat = g .mixed_behavior_profile (rational = True , data = prof_data_rat )
953- print ()
954- print (profile_rat .max_regret ())
955- # print(profile1.max_regret()) # same
956- profile_rat = g .mixed_behavior_profile (rational = True , data = prof_data_rat )
957- print (profile_rat .max_regret ())
958- print ("=======================================" )
959-
960-
961- def test_regrets_tmp3 ():
962-
963- g = games .create_3_player_with_internal_outcomes_efg ()
964-
965- prof_data_doub = [[[1 , 0 ], [1 , 0 ]], [[1 , 0 ], [0.5 , 0.5 ]], [[1 , 0 ], [0 , 1 ]]]
966- profile_doub = g .mixed_behavior_profile (rational = False , data = prof_data_doub )
967- print ()
968- print (profile_doub .max_regret ()) # 1.5
969- profile_doub = g .mixed_behavior_profile (rational = False , data = prof_data_doub )
970- print (profile_doub .max_regret ()) # now different! 0
971- print ("=======================================" )
972-
973- prof_data_rat = [[[1 , 0 ], [1 , 0 ]], [[1 , 0 ], ["1/2" , "1/2" ]], [[1 , 0 ], [0 , 1 ]]]
974- profile_rat = g .mixed_behavior_profile (rational = True , data = prof_data_rat )
975- print ()
976- print (profile_rat .max_regret ())
977- profile_rat = g .mixed_behavior_profile (rational = True , data = prof_data_rat )
978- print (profile_rat .max_regret ())
979- print ("=======================================" )
980-
981- prof_data_doub = [[[1 , 0 ], [1 , 0 ]], [[1 , 0 ], [0.5 , 0.5 ]], [[1 , 0 ], [0 , 1 ]]]
982- profile_doub = g .mixed_behavior_profile (rational = False , data = prof_data_doub )
983- print ()
984- print (profile_doub .max_regret ())
985- profile_doub = g .mixed_behavior_profile (rational = False , data = prof_data_doub )
986- print (profile_doub .max_regret ())
987- print ("=======================================" )
0 commit comments