We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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. """
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
"""
The text was updated successfully, but these errors were encountered: