Skip to content

Import PokeAgentPlayer in env/wrappers.py - #89

Open
JeremyFriesenGitHub wants to merge 1 commit into
UT-Austin-RPL:mainfrom
JeremyFriesenGitHub:fix/pokeagent-player-import
Open

JeremyFriesenGitHub wants to merge 1 commit into
UT-Austin-RPL:mainfrom
JeremyFriesenGitHub:fix/pokeagent-player-import

Conversation

@JeremyFriesenGitHub

Copy link
Copy Markdown

metamon/env/wrappers.py uses PokeAgentPlayer when battle_backend="pokeagent" but only imports MetamonPlayer, so any model that defaults to that backend fails to start:

python -m metamon.rl.evaluate --eval_type heuristic --agent Minikazam --gens 1 --formats ou --total_battles 30
...
  File "metamon/env/wrappers.py", line 312, in __init__
    player_class = PokeAgentPlayer
NameError: name 'PokeAgentPlayer' is not defined. Did you mean: 'PokeAgentLadder'?

This adds the missing name to the existing import.

Tested on main (0a00a75) with Python 3.11: the command above now runs, and Minikazam won 30 of 30 battles against the heuristic baselines in gen1ou.

battle_backend="pokeagent" raised NameError because wrappers.py uses
PokeAgentPlayer without importing it.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant