Skip to content

Using Godot, How would do you make a multi-agent scene #4

Answered by asieradzk
KShivum asked this question in Q&A
Discussion options

You must be logged in to vote

Here Man, I fixed it for you, you were returning null observation due to some reset mess some key points:

  1. Do not reset env by yourself, set a bool flag and the RL Matrix resets when episode ends
  2. Make sure you dont reset environment multiple times when you dont need it, can cause issues

These I didnt fix for you:
3. Your agents interact with env for many episodes without any reward, the algo will not know which direction to move in (sparse reward problem)
4. In the unlikely event the dragon catches the player or player moves to exit you only give reward at the end, the algo will not know which actions to attribute reward to
DungeonDragonAI.zip
(credit assignment problem)

You should maybe…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@KShivum
Comment options

@asieradzk
Comment options

@KShivum
Comment options

@asieradzk
Comment options

Answer selected by asieradzk
@KShivum
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants