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

[RLlib] Fix two RL docs examples #34353

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

ArturNiederfahrenhorst
Copy link
Contributor

Why are these changes needed?

We currently have two RLlib doc tests failing.
This PR fixes both.

Signed-off-by: Artur Niederfahrenhorst <[email protected]>
my_head = catalog.build_my_head("torch") # doctest: +SKIP
out = my_head(...) # doctest: +SKIP
my_head = catalog.build_my_head("torch")
out = my_head(torch.Tensor([[1]]))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I wrote them, I assumed that these # doctest: +SKIP would work on them. It does not.

Signed-off-by: Artur Niederfahrenhorst <[email protected]>
)
policy_dict, is_policy_to_train = config.get_multi_agent_setup(
env=gym.make("CartPole-v1"))
is_policy_to_train("pol1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to delete the output of these commands? otherwise lgtm

@pcmoritz
Copy link
Contributor

Thanks for making the docs build green again ❤️

#fasterandgreener

Signed-off-by: Artur Niederfahrenhorst <[email protected]>
Copy link
Member

@gjoliver gjoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally. thanks a ton.

@gjoliver gjoliver merged commit f93b6f1 into ray-project:master Apr 13, 2023
vitsai pushed a commit to vitsai/ray that referenced this pull request Apr 17, 2023
ArturNiederfahrenhorst added a commit to ArturNiederfahrenhorst/ray that referenced this pull request Apr 18, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
Signed-off-by: elliottower <[email protected]>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
Signed-off-by: Artur Niederfahrenhorst <[email protected]>
Signed-off-by: Jack He <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants