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

make_batch2 in textworld.gym #1

Open
Comp-Engr18 opened this issue Aug 21, 2021 · 2 comments
Open

make_batch2 in textworld.gym #1

Comp-Engr18 opened this issue Aug 21, 2021 · 2 comments

Comments

@Comp-Engr18
Copy link

Comp-Engr18 commented Aug 21, 2021

The following code to train the agent, uses make_batch2. But I have come up with error:
module 'textworld.gym' has no attribute make_batch2
But now the textworld.gym does not have make_batch2. I have checked Textworld.doc but I haven't found the make_batch2 module there.
Can you tell me the alternative code to do the same task as below:

env_id = make_batch2(env_ids, parallel=True)
env = gym.make(env_id)
env.seed(episode_no)

obs, infos = env.reset()
batch_size = len(obs)
@MarcCote
Copy link

MarcCote commented Aug 23, 2021

The QAit code was developed using the following TextWorld version:

pip install https://github.com/Microsoft/TextWorld/archive/rebased-interactive-qa.zip

*We cannot guarantee reproducibility nor compatibility with recent versions of TextWorld

@MarcCote
Copy link

For completeness, see microsoft/TextWorld#273 to see how to replace make_batch2 when using a recent version of TextWorld.

Note fixing that is not enough to make the QAit code compatible with recent versions of TextWorld.

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