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

Incorrect code blocks in doc #1503

Open
londumas opened this issue Mar 1, 2023 · 0 comments
Open

Incorrect code blocks in doc #1503

londumas opened this issue Mar 1, 2023 · 0 comments

Comments

@londumas
Copy link

londumas commented Mar 1, 2023

In section "Optimization with constraints" of the documentation,
some code blocks are not rendered properly.

https://facebookresearch.github.io/nevergrad/optimization.html#optimization-with-constraints

"""
Then, if you want to work with the ask/tell form, instead of .. code-block:: python

optimizer.tell(candidate, value)

you can do .. code-block:: python

optimizer.tell(candidate, value, [constraint_violation1, constraint_violation2, constraint_violation3])

Or, if you work with minimize, you can also replace .. code-block:: python

optimizer.minimize(loss_function)

by .. code-block:: python

optimizer.minimize(loss_function, constraint_violations)

where constraint_violations maps a candidate to a vector of constraint violations.
"""

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