Beispiel #1
0
def get_simple_scenarios(context):
    pomdp_scenarios = [
        dict(id_pomdp='idec-test01',
             expected_ntrajectories=2,
             expected_nbits=0,
             expected_nstates=1),
        dict(id_pomdp='idec-test02',
             expected_ntrajectories=2,
             expected_nbits=0,
             expected_nstates=1),
        dict(id_pomdp='idec-test03',
             expected_ntrajectories=4,
             expected_nbits=1,
             expected_nstates=2),
        dict(id_pomdp='idec-test04',
             expected_ntrajectories=3,
             expected_nbits=0,
             expected_nstates=1),
    ]

    from pkg_resources import resource_filename  # @UnresolvedImport
    dirs = [
        resource_filename("tmdp", "configs"),
        resource_filename("gridworld", "configs"),
    ]
    GlobalConfig.global_load_dirs(dirs)
    ts = []
    for t in pomdp_scenarios:
        t['pomdp'] = context.comp_config(instance_mdp, t['id_pomdp'])
        ts.append(t)
    return ts
Beispiel #2
0
def get_simple_scenarios(context):
    pomdp_scenarios = [
        dict(id_pomdp='idec-test01',
             expected_ntrajectories=2,
             expected_nbits=0,
             expected_nstates=1),
        dict(id_pomdp='idec-test02',
             expected_ntrajectories=2,
             expected_nbits=0,
             expected_nstates=1),
        dict(id_pomdp='idec-test03',
             expected_ntrajectories=4,
             expected_nbits=1,
             expected_nstates=2),
        dict(id_pomdp='idec-test04',
             expected_ntrajectories=3,
             expected_nbits=0,
             expected_nstates=1),
     ]

    from pkg_resources import resource_filename  # @UnresolvedImport
    dirs = [
        resource_filename("tmdp", "configs"),
        resource_filename("gridworld", "configs"),
    ]
    GlobalConfig.global_load_dirs(dirs)
    ts = []
    for t in pomdp_scenarios:
        t['pomdp'] = context.comp_config(instance_mdp, t['id_pomdp'])
        ts.append(t)
    return ts
Beispiel #3
0
 def initial_setup(self):
     options = self.get_options()
     # Load configurations for all modules
     GlobalConfig.global_load_dirs(options.config_dirs)
Beispiel #4
0
 def initial_setup(self):
     options = self.get_options()
     # Load configurations for all modules
     GlobalConfig.global_load_dirs(options.config_dirs)
Beispiel #5
0
    def initial_setup(self):
        config_dirs = self.get_config_dirs()
        GlobalConfig.global_load_dirs(config_dirs)

        np.seterr(all='raise')
Beispiel #6
0
 def initial_setup(self):
     config_dirs = self.get_config_dirs()
     GlobalConfig.global_load_dirs(config_dirs)
Beispiel #7
0
    def initial_setup(self):
        config_dirs = self.get_config_dirs()
        GlobalConfig.global_load_dirs(config_dirs)

        np.seterr(all='raise')