mirror of
https://github.com/huggingface/deep-rl-class.git
synced 2026-11-28 06:53:43 +08:00
Update colab with Omar's feedback
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"provenance": [],
|
||||
"collapsed_sections": [],
|
||||
"private_outputs": true,
|
||||
"authorship_tag": "ABX9TyMOHGSSpk9rnjMu792v/YsE",
|
||||
"authorship_tag": "ABX9TyPoxzAc/iqqWPY8sm+LcHBH",
|
||||
"include_colab_link": true
|
||||
},
|
||||
"kernelspec": {
|
||||
@@ -116,7 +116,7 @@
|
||||
"\n",
|
||||
"🔲 📚 [Read the Unit 4 Readme](https://github.com/huggingface/deep-rl-class/blob/main/unit4/README.md) contains all the information.\n",
|
||||
"\n",
|
||||
"🔲 📚 **Study Policy Gradients** by reading the chapter 👉 "
|
||||
"🔲 📚 **Study Policy Gradients** by reading the chapter 👉 https://huggingface.co/blog/deep-rl-pg "
|
||||
],
|
||||
"metadata": {
|
||||
"id": "mjY-eq3eWh9O"
|
||||
@@ -192,8 +192,9 @@
|
||||
"- `gym-games`: Extra gym environments made with PyGame.\n",
|
||||
"- `huggingface_hub`: 🤗 works as a central place where anyone can share and explore models and datasets. It has versioning, metrics, visualizations and other features that will allow you to easilly collaborate with others.\n",
|
||||
"\n",
|
||||
"You can see here all the Deep reinforcement Learning models available 👉 https://huggingface.co/models?other=reinforce\n",
|
||||
"\n"
|
||||
"You can see here all the Reinforce models available 👉 https://huggingface.co/models?other=reinforce\n",
|
||||
"\n",
|
||||
"And you can find all the Deep Reinforcement Learning models here 👉 https://huggingface.co/models?pipeline_tag=reinforcement-learning\n"
|
||||
],
|
||||
"metadata": {
|
||||
"id": "tjrLfPFIW8XK"
|
||||
@@ -520,7 +521,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"debug_policy = Policy(s_size, a_size, 64)\n",
|
||||
"debug_policy = Policy(s_size, a_size, 64).to(device)\n",
|
||||
"debug_policy.act(env.reset())"
|
||||
],
|
||||
"metadata": {
|
||||
@@ -1147,7 +1148,8 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"package_to_hub(\"ThomasSimonini/Reinforce-CartPole\", # Model id\n",
|
||||
"repo_id = \"\" #TODO Define your repo id {username/Reinforce-{model-id}}\n",
|
||||
"package_to_hub(repo_id,\n",
|
||||
" cartpole_policy, # The model we want to save\n",
|
||||
" cartpole_hyperparameters, # Hyperparameters\n",
|
||||
" eval_env, # Evaluation environment\n",
|
||||
@@ -1310,7 +1312,8 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"package_to_hub(\"ThomasSimonini/Reinforce-Pixelcopter-PLE-v0\", \n",
|
||||
"repo_id = \"\" #TODO Define your repo id {username/Reinforce-{model-id}}\n",
|
||||
"package_to_hub(repo_id, \n",
|
||||
" pixelcopter_policy,\n",
|
||||
" pixelcopter_hyperparameters,\n",
|
||||
" eval_env,\n",
|
||||
@@ -1481,7 +1484,8 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"package_to_hub(\"ThomasSimonini/Reinforce-Pong-PLE-v0\", # Model id\n",
|
||||
"repo_id = \"\" #TODO Define your repo id {username/Reinforce-{model-id}}\n",
|
||||
"package_to_hub(repo_id,\n",
|
||||
" pong_policy, # The model we want to save\n",
|
||||
" pong_hyperparameters, # Hyperparameters\n",
|
||||
" eval_env, # Evaluation environment\n",
|
||||
|
||||
Reference in New Issue
Block a user