Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found him good for discrete space when I ran the project, but I would like to know how to make use of it in continuous space? #4

Open
liu-yuntao opened this issue Mar 25, 2022 · 0 comments

Comments

@liu-yuntao
Copy link

liu-yuntao commented Mar 25, 2022

I want to train the agent using the project file after customizing the environment based on the gym's continuous space, the state and actions of the environment are defined as follows:

    self.min_action = np.array([[-3, -3, -3, -3, -3]]).reshape(1,5)
    self.max_action = np.array([[3, 3, 3, 3, 3]]).reshape(1,5)

    self.low_state = np.array(
        [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=np.float32
    ).reshape(1,10)
    self.high_state = np.array(
        [[50, 50, 50, 50, 50, 300, 300, 300, 300, 300]], dtype=np.float32
    ).reshape(1,10)

    self.action_space = spaces.Box(
        low=self.min_action, high=self.max_action, shape=(1, 5), dtype=np.float32
    )

    self.observation_space = spaces.Box(
        low=self.low_state, high=self.high_state, shape=(1, 10), dtype=np.float32
    )

Is it possible to implement this idea based on PPO ICM? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant