Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: adding new_reward utilisation option to training analysis notebook #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ActionSpace_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
"outputs": [],
"source": [
"# Uncomment the line of code below to evaluate a different reward function\n",
"# nr.new_reward(df, l_center_line, 'reward.reward_sample') #, verbose=True)"
"# nr.new_reward(df, l_track, 'reward.reward_sample') #, verbose=True)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion ActionSpace_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@

# +
# Uncomment the line of code below to evaluate a different reward function
# nr.new_reward(df, l_center_line, 'reward.reward_sample') #, verbose=True)
# nr.new_reward(df, l_track, 'reward.reward_sample') #, verbose=True)
# -

simulation_agg = au.simulation_agg(df)
Expand Down
11 changes: 11 additions & 0 deletions Training_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,17 @@
"The higher the value, the more stable the model is on a given track."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# Uncomment the line of code below to evaluate a different reward function\n",
"#l_track = track.center_line\n",
"#nr.new_reward(df, l_track, 'reward.reward_sample') #, verbose=True)"
]
},
{
"cell_type": "code",
"execution_count": 12,
Expand Down
5 changes: 5 additions & 0 deletions Training_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@
#
# The higher the value, the more stable the model is on a given track.

# +
# Uncomment the line of code below to evaluate a different reward function
#l_track = track.center_line
#nr.new_reward(df, l_track, 'reward.reward_sample') #, verbose=True)

# +
simulation_agg = au.simulation_agg(df)
try:
Expand Down