Farama-Foundation / Gymnasium

An API standard for single-agent reinforcement learning environments, with popular reference environments and related utilities (formerly Gym)
https://gymnasium.farama.org
MIT License
6.93k stars 770 forks source link

[Proposal] Tutorials #28

Open pseudo-rnd-thoughts opened 2 years ago

pseudo-rnd-thoughts commented 2 years ago

Proposal

To encourage the use of Gymnasium and build up the RL community, I would propose that a large range of tutorials are created.

This is a list of tutorials that could be made

kir0ul commented 2 years ago

Will there be a required format for the tutorials?

kir0ul commented 2 years ago

Isn't the first tutorial on Implementation of a custom environment already done in: https://gymnasium.farama.org/content/environment_creation/ ?

pseudo-rnd-thoughts commented 1 year ago

We are using the sphinx-gallery project, therefore, we expect single python files with figures stored in a folder with the same name. We are in the process of transferring our current tutorials to this style but pytorch use this style for their tutorials

BalajiAI commented 1 year ago

Since I'm a beginner, I'll take DQN for Atari tutorial.

kir0ul commented 1 year ago

I'm working on the Frozenlake one, still work in progress but I hope to have it ready soonish.

siddarth-c commented 1 year ago

I am working on "Training a deep RL agent with pytorch (with the new step API)".

hahas94 commented 1 year ago

Could someone make an update on this proposal? For instance, which tasks are done, which ones are work in progress, so that one may know what to work on.

pseudo-rnd-thoughts commented 1 year ago

Could someone make an update on this proposal? For instance, which tasks are done, which ones are work in progress, so that one may know what to work on.

I've have updated

kir0ul commented 1 year ago

@pseudo-rnd-thoughts also the Frozenlake training results with different map sizes tutorial is done.

hahas94 commented 1 year ago

Thanks!

I am thinking to work on Training a deep RL agent with pytorch fromscratch. However, doesn't the REINFORCE implementation fit that requirement?

pseudo-rnd-thoughts commented 1 year ago

Good point @hahas94 I think we are always happy for more tutorials. You can work on another tutorial if you want

hahas94 commented 1 year ago

Okay, if similar tutorials is a good thing I will stick to my aforementioned choice. I am thinking of writing a tutorial on implementing the C51 agent in PyTorch.

jonnytracker commented 10 months ago

We need this. For practical use case. Need external environment tutorials not another memory environment

dantp-ai commented 1 week ago

I can add a tutorial for "Train an agent with tianshou". The exact agent and env is free to choose right, as long as env is from Gymnasium?

Kallinteris-Andreas commented 1 week ago

@dantp-ai we have chosen to link tutorials, who purpose is to show how to use external libraries, to

https://gymnasium.farama.org/main/tutorials/third-party-tutorials/#third-party-tutorials-about-libraries-that-use-gymnasium

dantp-ai commented 5 days ago

@Kallinteris-Andreas I see, so for "Train an agent with tianshou" it would simply mean listing a link to the library with a brief explanation of its focus (similar to AgileRL in the section).

Regarding, the tutorial "How to use the action sample masking, with example from Taxi", I can tackle this one. Do I understand correctly that for this tutorial we want to show the impact of the RL agent learning, when we use at each state the info["action_mask"] to pick up an action that results in a state change versus when we are not using the action_mask info?

Kallinteris-Andreas commented 5 days ago
  1. It does mean that now
  2. @pseudo-rnd-thoughts, can elaborate
pseudo-rnd-thoughts commented 5 days ago

@dantp-ai yes that is general idea. Both a discussion of what action masking is, how it is impacted in gymnasium with space.sample(mask) and a small training implementation