def define_spaces(self) -> None: """ Set the types and spaces of observation and action from config. """ self.observation_type = observation_factory(self, self.config["observation"]) self.action_type = action_factory(self, self.config["action"]) self.observation_space = self.observation_type.space() self.action_space = self.action_type.space()
def define_spaces(self) -> None: self.observation_type = observation_factory(self, self.config["observation"]) self.observation_space = self.observation_type.space() self.action_type = action_factory(self, self.config["action"]) self.action_space = self.action_type.space()