Skip to content

Commit

Permalink
GAIL and AIRL tutorials: report also std in results
Browse files Browse the repository at this point in the history
  • Loading branch information
michalzajac-ml committed Sep 6, 2023
1 parent 4fc83be commit ab6e0c3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions docs/tutorials/3_train_gail.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,18 @@
"metadata": {},
"outputs": [],
"source": [
"print(\"Mean reward before training:\", np.mean(learner_rewards_before_training))\n",
"print(\"Mean reward after training:\", np.mean(learner_rewards_after_training))"
"print(\n",
" \"Rewards before training:\",\n",
" np.mean(learner_rewards_before_training),\n",
" \"+/-\",\n",
" np.std(learner_rewards_before_training),\n",
")\n",
"print(\n",
" \"Rewards after training:\",\n",
" np.mean(learner_rewards_after_training),\n",
" \"+/-\",\n",
" np.std(learner_rewards_after_training),\n",
")"
]
}
],
Expand Down
14 changes: 12 additions & 2 deletions docs/tutorials/4_train_airl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,18 @@
"metadata": {},
"outputs": [],
"source": [
"print(\"Mean reward before training:\", np.mean(learner_rewards_before_training))\n",
"print(\"Mean reward after training:\", np.mean(learner_rewards_after_training))"
"print(\n",
" \"Rewards before training:\",\n",
" np.mean(learner_rewards_before_training),\n",
" \"+/-\",\n",
" np.std(learner_rewards_before_training),\n",
")\n",
"print(\n",
" \"Rewards after training:\",\n",
" np.mean(learner_rewards_after_training),\n",
" \"+/-\",\n",
" np.std(learner_rewards_after_training),\n",
")"
]
}
],
Expand Down

0 comments on commit ab6e0c3

Please sign in to comment.