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

Training and eval env are not of the same type #7

Closed
Gieted opened this issue May 12, 2021 · 2 comments
Closed

Training and eval env are not of the same type #7

Gieted opened this issue May 12, 2021 · 2 comments

Comments

@Gieted
Copy link

Gieted commented May 12, 2021

When executing docker-compose exec app python3 train.py
I'm getting a warning message:

/home/selfplay/.local/lib/python3.6/site-packages/stable_baselines/common/callbacks.py:287: UserWarning: Training and eval env are not of the same type<SelfPlayEnv instance> != <stable_baselines.common.vec_env.dummy_vec_env.DummyVecEnv object at 0x7f1db36e9c50>
  "{} != {}".format(self.training_env, self.eval_env))

Besides that the training works fine. Is it something I should worry about, or it's normal, and I should ignore it?

@davidADSP
Copy link
Owner

Nah that's normal - should still run fine!

@Sylvain2903
Copy link

In my Custom Environment, after some training, the Episode reward mean varies between 0.15 and 0.4, whilst the evaluation average reward is usually around -0.2. For this reason my model never updates as it seems to fail the evaluation every time despite clearly learning how to play the game. Does this have to do with this warning? How can I fix it?

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

3 participants