Skip to content
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

[feature request] callback returning wins (or winrate) vs another agent #100

Open
kevinu3d opened this issue Oct 14, 2021 · 1 comment
Open

Comments

@kevinu3d
Copy link

When training with different reward functions it's hard to compare 2 bots. A callback capable of running n games between current agent and another would prove useful to measure progress.

I will look into it but if someone knows how to do that help is welcome.

@glmcdona
Copy link
Owner

glmcdona commented Oct 16, 2021

Good idea.

This here is probably the closest existing code to it:

class SaveReplayAndModelCallback(BaseCallback):

And example usage:

SaveReplayAndModelCallback(

You can also look at the built-in eval callback:

EvalCallback(env_eval, best_model_save_path=f'./logs_{run_id}/',

One last thing to look at is this old example code that logged custom game information to the tensorboard. It's was a bit of a hackjob because of the agent having been reset before tensorboard grabs data: PR #86.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants