-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about turning agents on/off. #77
Comments
Hi there, I never tried it yet so I am not sure if it will work. |
Hey, I suppose a followup question about reinforced learning would be during the training process, does a step with a reward of 0 influence the model whatsoever? |
The model doesn't care about a specific value that much. It only cares about maximizing the reward. I just got another little idea is that you create a state in agent, and make an "do nothing" action . This is trying to let the agent learn only to play on its turn. |
Hi @liamFerris, This is an important use-case which we'd like to think more about how to officially support. Right now I would recommend doing as @SPINACHCEO suggested, and check whether or not it is the agent's turn. When it isn't the agent's turn, the action provided by the model can simply be ignored. Very interested to see if other ideas come up around this though. |
In case of turn based game maybe you should try use only one agent and make it switch sides then add the current side into state list. |
I'm running into a similar issue. I read here to just return an empty list, but that throws an error from Brain.CollectStates(). I considered a "0" state, but I may try surferau's suggestion. |
Folks, closing this out due to inactivity. We've also since released v0.3 which includes several new features. Please create a new issue if you have additional questions. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi there,
This is a really exciting project, really appreciate the work that has went in thus far - great job all :)
I am trying to create
agents
that where theirsteps
are triggered by me, through code (rather than every frame or some fixed frame skip). I'm not sure if maybe this is something that is obvious and I've just missed it or if there is no best practice for what I am trying to do.Specifically I am trying to train a
brain
using twoagents
playing against each other, but in a turn based environment (player one -> player two -> player one etc).Should I be disabling the
Agent
scripts? Should I play with theWait Time
during runtime? Neither of these sound like a perfect solution, nor have my attempts at them been successful so far.Thanks in advance for the help,
Liam
The text was updated successfully, but these errors were encountered: