You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.7 KiB

11 months ago
11 months ago
11 months ago
11 months ago
  1. #!/usr/bin/python3
  2. import subprocess
  3. slippery_configs=["/home/knolli/Documents/University/Thesis/tempest-py/slippery_prob_075.yaml",
  4. "/home/knolli/Documents/University/Thesis/tempest-py/slippery_prob_08.yaml",
  5. "/home/knolli/Documents/University/Thesis/tempest-py/slippery_prob_085.yaml",
  6. "/home/knolli/Documents/University/Thesis/tempest-py/slippery_prob_09.yaml",
  7. "/home/knolli/Documents/University/Thesis/tempest-py/slippery_prob_095.yaml",
  8. "/home/knolli/Documents/University/Thesis/tempest-py/slippery_prob_1.yaml"]
  9. slippery_probs=[[0.125, 0.25, 0.75], # 0.75
  10. [0.1, 0.2, 0.8], # 0.8
  11. [0.075,0.15,0.85], # 0.85
  12. [0.05, 0.1, 0.9], # 0.9
  13. [0.025,0.05, 0.95], # 0.95
  14. # [0.01, 0.02, 0.98], # 0.98
  15. # [0.005,0.01, 0.99], # 0.99
  16. [0, 0, 1]] # 1
  17. shield_values = [0.85, 0.9, 0.95, 0.98, 0.99, 1]
  18. prob_confs = list(zip(slippery_probs, slippery_configs))
  19. counter=1
  20. shielding=["full", "none"]
  21. comps= ["relative", "absolute"]
  22. for sh in shielding:
  23. for shield_value in shield_values:
  24. for sh_comp in ["relative", "absolute"]:
  25. for probs, config in prob_confs:
  26. command = f"echo \"Running experiment with sh:{sh}, sh_value:{probs[2]}, sh_comp:{sh_comp}, probvalues:{probs}, config{config}\""
  27. execute_command = f'./syncscript_local.sh {250000} {"../logresults/"} {"70"} {"MiniGrid-LavaSlipperyS12-v2"} {sh} {sh_comp} {config} {probs[0]} {probs[1]} {probs[2]} {shield_value}'
  28. subprocess.call(execute_command, shell=True)#.decode("utf-8").split('\n')