mimi
mimi copied to clipboard
question in the setting up of lander notebook
First of all, thank you for the great articles and research.
I meet the prroblem that 'LunarLander' object has no attribute 'helipad_idx' in setting up lander notebook. Pleaae, telling me what the meaning of "self.goal = self.env.helipad_idx" in envs.py about 319 row. Maybe I can change or ignore this row to fix this problem.
I changed some parts of the codes to fix some problems that I met before. I am wondering if they may cause this problem.
1.About 304 line in envs.py, I change "self.n_act_dim = self.env.action_space.low.size" to "self.n_act_dim = self.env.action_space", "self.n_env_obs_dim = self.env.observation_space.low.size" to "self.n_env_obs_dim = self.env.observation_space". I did that to fix the problem that "'Discrete' object has no attribute 'low'"
2.I use the following code: mi_model_init_kwargs = { 'n_env_obs_dim': env.n_min_env_obs_dim, 'n_user_obs_dim': env.n_user_obs_dim, #'n_act_dim': env.n_act_dim, 'n_act_dim': 4, 'n_layers': 2, 'layer_size': 64 }
This help me to overcome the problem that " Error converting shape to a TensorShape: Dimension value must be integer or None or have an index method, got value 'Discrete(4)' with type '<class 'gym.spaces.discrete.Discrete'>'."
It seems that I always meet problems in the "n_act_dim". Please helping me to fix my problems.