示例#1
0
def create_mdnrnn_trainer_and_embed_dataset(mdnrnn_params: OpenAiGymParameters,
                                            use_gpu):
    env, mdnrnn_trainer, _, _, _ = mdnrnn_gym(mdnrnn_params)
    embed_rl_dataset = RLDataset("/tmp/rl.pkl")
    create_embed_rl_dataset(env, mdnrnn_trainer, embed_rl_dataset, use_gpu,
                            mdnrnn_params.run_details)
    return env, mdnrnn_trainer, embed_rl_dataset
示例#2
0
 def _test_mdnrnn(self,
                  params,
                  use_gpu=False,
                  feature_importance=False,
                  feature_sensitivity=False):
     return mdnrnn_gym(params, use_gpu, feature_importance,
                       feature_sensitivity)
def create_mdnrnn_trainer_and_embed_dataset(mdnrnn_params, use_gpu):
    env, mdnrnn_trainer, _, _, _ = mdnrnn_gym(mdnrnn_params, use_gpu)
    embed_rl_dataset = RLDataset("/tmp/rl.pkl")
    create_embed_rl_dataset(
        env, mdnrnn_trainer, embed_rl_dataset, use_gpu, **mdnrnn_params["run_details"]
    )
    return env, mdnrnn_trainer, embed_rl_dataset
示例#4
0
 def _test_mdnrnn(
     self,
     params: OpenAiGymParameters,
     use_gpu=False,
     feature_importance=False,
     feature_sensitivity=False,
 ):
     return mdnrnn_gym(params, feature_importance, feature_sensitivity)