diff --git a/slippery_prob_075.yaml b/slippery_prob_075.yaml new file mode 100644 index 0000000..007a88e --- /dev/null +++ b/slippery_prob_075.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "3/4" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "1/4" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "1/8" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/slippery_prob_085.yaml b/slippery_prob_085.yaml new file mode 100644 index 0000000..ba9a81d --- /dev/null +++ b/slippery_prob_085.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "17/20" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "3/20" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "3/40" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/slippery_prob_09.yaml b/slippery_prob_09.yaml new file mode 100644 index 0000000..ff476e2 --- /dev/null +++ b/slippery_prob_09.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "9/10" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "1/10" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "1/20" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/slippery_prob_095.yaml b/slippery_prob_095.yaml new file mode 100644 index 0000000..12a18fa --- /dev/null +++ b/slippery_prob_095.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "19/20" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "1/20" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "1/40" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/slippery_prob_098.yaml b/slippery_prob_098.yaml new file mode 100644 index 0000000..d7f8d33 --- /dev/null +++ b/slippery_prob_098.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "49/50" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "1/50" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "1/100" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/slippery_prob_099.yaml b/slippery_prob_099.yaml new file mode 100644 index 0000000..4dc748b --- /dev/null +++ b/slippery_prob_099.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "99/100" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "1/100" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "1/200" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/slippery_prob_1.yaml b/slippery_prob_1.yaml new file mode 100644 index 0000000..2173fe8 --- /dev/null +++ b/slippery_prob_1.yaml @@ -0,0 +1,39 @@ +--- +labels: + - label: "AgentIsInGoal" + text: "AgentIsInGoal" + +constants: + - constant: "prop_slippery_turn" + type: "double" + value: "9/9" + overwrite: True + - constant: "prop_next_neighbour_turn" + type: "double" + value: "0/9" + overwrite: True + - constant: "prop_slippery_move_forward" + type: "double" + value: "5/5" + overwrite: True + - constant: "prop_direct_neighbour" + type: "double" + value: "0/5" + overwrite: True + - constant: "prop_next_neighbour" + type: "double" + value: "0/10" + overwrite: True + - constant: "total_prop" + type: "double" + value: "4" + overwrite: True +... + +# const double prop_zero = 0/9; +# const double prop_next_neighbour = 1/9; +# const double prop_slippery_move_forward = 7/9; +# const double prop_slippery_turn = 6/9; +# const double prop_next_neighbour_turn = 1/9; +# const double prop_direct_neighbour = 2/9; +# const double total_prop = 9; \ No newline at end of file diff --git a/testall.py b/testall.py new file mode 100644 index 0000000..3d114f2 --- /dev/null +++ b/testall.py @@ -0,0 +1,28 @@ +#!/usr/bin/python3 + +import subprocess + +slippery_configs=["slippery_prob_075.yaml", "slippery_prob_08.yaml","slippery_prob_085.yaml","slippery_prob_09.yaml", + "slippery_prob_095.yaml", "slippery_prob_098.yaml","slippery_prob_099.yaml","slippery_prob_1.yaml"] + +slippery_probs=[[0.125, 0.25, 0.75], # 0.75 + [0.1, 0.2, 0.8], # 0.8 + [0.075,0.15,0.85], # 0.85 + [0.05, 0.1, 0.9], # 0.9 + [0.025,0.05, 0.95], # 0.95 + [0.01, 0.02, 0.98], # 0.98 + [0.005,0.01, 0.99], # 0.99 + [0, 0, 1]] # 1 + +prob_confs = list(zip(slippery_probs, slippery_configs)) +counter=1 +shielding=["full", "none"] +comps= ["relative", "absolute"] + +for sh in shielding: + for sh_comp in ["relative", "absolute"]: + for probs, config in prob_confs: + command = f"echo \"Running experiment with sh:{sh}, sh_value:{probs[2]}, sh_comp:{sh_comp}, probvalues:{probs}, config{config}\"" + execute_command = f'./syncscript.sh {250000} {"../logresults/"} {"70"} {"MiniGrid-LavaSlipperyS12-v2"} {sh} {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]}' + subprocess.call(execute_command, shell=True)#.decode("utf-8").split('\n') + \ No newline at end of file diff --git a/testall.sh b/testall.sh new file mode 100755 index 0000000..3d114f2 --- /dev/null +++ b/testall.sh @@ -0,0 +1,28 @@ +#!/usr/bin/python3 + +import subprocess + +slippery_configs=["slippery_prob_075.yaml", "slippery_prob_08.yaml","slippery_prob_085.yaml","slippery_prob_09.yaml", + "slippery_prob_095.yaml", "slippery_prob_098.yaml","slippery_prob_099.yaml","slippery_prob_1.yaml"] + +slippery_probs=[[0.125, 0.25, 0.75], # 0.75 + [0.1, 0.2, 0.8], # 0.8 + [0.075,0.15,0.85], # 0.85 + [0.05, 0.1, 0.9], # 0.9 + [0.025,0.05, 0.95], # 0.95 + [0.01, 0.02, 0.98], # 0.98 + [0.005,0.01, 0.99], # 0.99 + [0, 0, 1]] # 1 + +prob_confs = list(zip(slippery_probs, slippery_configs)) +counter=1 +shielding=["full", "none"] +comps= ["relative", "absolute"] + +for sh in shielding: + for sh_comp in ["relative", "absolute"]: + for probs, config in prob_confs: + command = f"echo \"Running experiment with sh:{sh}, sh_value:{probs[2]}, sh_comp:{sh_comp}, probvalues:{probs}, config{config}\"" + execute_command = f'./syncscript.sh {250000} {"../logresults/"} {"70"} {"MiniGrid-LavaSlipperyS12-v2"} {sh} {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]}' + subprocess.call(execute_command, shell=True)#.decode("utf-8").split('\n') + \ No newline at end of file