Shouldn't the state representation and valid_ids be rebuilt when we reset all environments by doing evs.reset() after every evaluation?
Shouldn't line 232 be replaced by following code:
obs, infos = envs.reset()
states = agent.build_state(obs, infos)
valid_ids = [agent.encode(info['valid']) for info in infos]
Shouldn't the state representation and valid_ids be rebuilt when we reset all environments by doing evs.reset() after every evaluation?
drrn-scienceworld/drrn/train-scienceworld.py
Line 232 in 4ed8909
Shouldn't line 232 be replaced by following code:
obs, infos = envs.reset()states = agent.build_state(obs, infos)valid_ids = [agent.encode(info['valid']) for info in infos]