We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a66e44b commit 84788a1Copy full SHA for 84788a1
src/reward_preprocessing/interpret.py
@@ -294,7 +294,10 @@ def interpret(
294
# Set of images, one for each feature, add each to plot
295
for feature_i in range(next_obs.shape[0]):
296
# Log the rewards
297
- custom_logger.record(f"reward_feature_{feature_i:02}", rews[feature_i])
+ rew_key = f"rew_feat_{feature_i:02}"
298
+ if features_are_actions:
299
+ rew_key += f"_{_get_action_meaning(action_id=feature_i)}"
300
+ custom_logger.record(rew_key, rews[feature_i])
301
# Log the images
302
sub_img_obs = obs[feature_i]
303
sub_img_next_obs = next_obs[feature_i]
0 commit comments