Skip to content

Commit

Permalink
use inline code syntax for constraints_func
Browse files Browse the repository at this point in the history
  • Loading branch information
nzw0301 committed Sep 16, 2021
1 parent 58b6889 commit 719f477
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optuna/samplers/_nsga2.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ class NSGAIISampler(BaseSampler):
:class:`~optuna.trial.FrozenTrial` and return the constraints. The return value must
be a sequence of :obj:`float` s. A value strictly larger than 0 means that a
constraints is violated. A value equal to or smaller than 0 is considered feasible.
If constraints_func returns more than one value for a trial, that trial is considered
feasible if and only if all values are equal to 0 or smaller.
If ``constraints_func`` returns more than one value for a trial, that trial is
considered feasible if and only if all values are equal to 0 or smaller.
The constraint_func will be evaluated after each successful trial.
The ``constraint_func`` will be evaluated after each successful trial.
The function won't be called when trials fail or they are pruned, but this behavior is
subject to change in the future releases.
Expand Down

0 comments on commit 719f477

Please sign in to comment.