microsoft / TextWorld

​TextWorld is a sandbox learning environment for the training and evaluation of reinforcement learning (RL) agents on text-based games.
Other
1.23k stars 188 forks source link

Allow option to provide list of seeds in BatchEnv #290

Closed MarcCote closed 2 years ago

MarcCote commented 2 years ago

This PR adds the option for providing a list of seeds to initialize each environment of an AsyncBatchEnv or SyncBatchEnv.

codecov-commenter commented 2 years ago

Codecov Report

Merging #290 (3eb62db) into master (753faea) will increase coverage by 0.20%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #290      +/-   ##
==========================================
+ Coverage   83.97%   84.18%   +0.20%     
==========================================
  Files          62       62              
  Lines        8019     8023       +4     
==========================================
+ Hits         6734     6754      +20     
+ Misses       1285     1269      -16     
Impacted Files Coverage Δ
textworld/envs/batch/batch_env.py 81.81% <100.00%> (+9.15%) :arrow_up:
textworld/envs/zmachine/jericho.py 95.60% <0.00%> (+3.29%) :arrow_up: