1414eat it. To control the game's difficulty, one can specify the amount of skills
1515that are involved to solve it (see skills section below).
1616
17- Skills
18- ------
19- The required skills are:
20-
21- * recipe{1,2,3} : Number of ingredients in the recipe.
22-
23- The optional skills that can be combined are:
24-
25- * take{1,2,3} : Number of ingredients to fetch. It must be less
26- or equal to the value of the `recipe` skill.
27- * open : Whether containers/doors need to be opened.
28- * cook : Whether some ingredients need to be cooked.
29- * cut : Whether some ingredients need to be cut.
30- * drop : Whether the player's inventory has limited capacity.
31- * go{1,6,9,12} : Number of locations in the game.
32-
33-
34- Splits
35- ------
36- In addition to the skills, one can specify from which disjoint distribution
37- the game should be generated from:
38-
39- * train : game use for training agent;
40- * valid : game may contain food items (adj-noun pairs) unseen within
41- the train split. It can also contain unseen food preparation;
42- * test : game may contain food items (adj-noun pairs) unseen within
43- the train split. It can also contain unseen food preparation.
44-
4517References
4618----------
4719.. [1] https://aka.ms/ftwp
@@ -1317,7 +1289,7 @@ def _place_one_distractor(candidates, ingredient):
13171289def build_argparser (parser = None ):
13181290 parser = parser or argparse .ArgumentParser ()
13191291
1320- group = parser .add_argument_group ('First TextWorld Competition game settings' )
1292+ group = parser .add_argument_group ('The Cooking Game settings' )
13211293 group .add_argument ("--recipe" , type = int , default = 1 , metavar = "INT" ,
13221294 help = "Number of ingredients in the recipe. Default: %(default)s" )
13231295 group .add_argument ("--take" , type = int , default = 0 , metavar = "INT" ,
@@ -1337,9 +1309,12 @@ def build_argparser(parser=None):
13371309 help = "Random seed used for generating the recipe. Default: %(default)s" )
13381310
13391311 group .add_argument ("--split" , choices = ["train" , "valid" , "test" ],
1340- help = "Control which foods can be used. Can either be"
1341- " 'train', 'valid', or 'test'."
1342- " Default: foods from all dataset splits can be used." )
1312+ help = "Specify the game distribution to use. Food items (adj-noun pairs) are split in three subsets."
1313+ " Also, the way the training food items can be prepared is further divided in three subsets.\n \n "
1314+ "* train: training food and their corresponding training preparations\n "
1315+ "* valid: valid food + training food but with unseen valid preparations\n "
1316+ "* test: test food + training food but with unseen test preparations\n \n "
1317+ " Default: game is drawn from the joint distribution over train, valid, and test." )
13431318
13441319 return parser
13451320
0 commit comments