Skip to content

Commit

Permalink
ficed leaderboard data paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fwiebe committed Oct 9, 2023
1 parent 49eba60 commit 48c651b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion leaderboard/simulation/compute_leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@
print(f"Simulating controller {f}")
compute_leaderboard_data(data_dir, f)
recompute_leaderboard = True
data_paths[mod.leaderboard_config["name"]] = mod.leaderboard_config

conf = mod.leaderboard_config
conf["csv_path"] = os.path.join(
data_dir, mod.leaderboard_config["csv_path"]
)
data_paths[mod.leaderboard_config["name"]] = conf


save_to = f"{data_dir}/leaderboard.csv"
Expand Down
2 changes: 1 addition & 1 deletion leaderboard/simulation/con_ddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

name = "ddpg"
leaderboard_config = {
"csv_path": "data/" + name + "/sim_swingup.csv",
"csv_path": name + "/sim_swingup.csv",
"name": name,
"simple_name": "DDPG",
"short_description": "RL Policy learned with Deep Deterministic Policy Gradient.",
Expand Down
2 changes: 1 addition & 1 deletion leaderboard/simulation/con_dircol_tvlqr_lqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

name = "dircol_tvlqr_lqr"
leaderboard_config = {
"csv_path": "data/" + name + "/sim_swingup.csv",
"csv_path": name + "/sim_swingup.csv",
"name": name,
"simple_name": "Direct collocation and TVLQR",
"short_description": "Direct collocation trajectory stabilized with time-varying LQR.",
Expand Down
2 changes: 1 addition & 1 deletion leaderboard/simulation/con_energyshaping_lqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

name = "energyshaping_lqr"
leaderboard_config = {
"csv_path": "data/" + name + "/sim_swingup.csv",
"csv_path": name + "/sim_swingup.csv",
"name": name,
"simple_name": "Energy Shaping and LQR",
"short_description": "Energy shaping for swingup and LQR for stabilization.",
Expand Down
2 changes: 1 addition & 1 deletion leaderboard/simulation/con_ilqr_tvlqr_lqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

name = "ilqr_tvlqr_lqr"
leaderboard_config = {
"csv_path": "data/" + name + "/sim_swingup.csv",
"csv_path": name + "/sim_swingup.csv",
"name": name,
"simple_name": "iLQR and TVLQR",
"short_description": "iLQR trajectory stabilized with time-varying LQR.",
Expand Down
2 changes: 1 addition & 1 deletion leaderboard/simulation/con_sac.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name = "sac"
leaderboard_config = {
"csv_path": "data/" + name + "/sim_swingup.csv",
"csv_path": name + "/sim_swingup.csv",
"name": name,
"simple_name": "SAC",
"short_description": "RL Policy learned with Soft Actor Critic.",
Expand Down

0 comments on commit 48c651b

Please sign in to comment.