Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RektPunk committed Jul 17, 2024
1 parent 70662d6 commit 172a0f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions optuna/visualization/_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _get_rank_subplot_info(
infeasible_trial_ids = []
filtered_ids = []
for idx, trial in enumerate(trials):
constraints = trial.system_attrs.get("constraints")
constraints = trial.system_attrs.get(_CONSTRAINTS_KEY)
if constraints is not None and any([x > 0.0 for x in constraints]):
infeasible_trial_ids.append(idx)
if x_param in trial.params and y_param in trial.params:
Expand All @@ -226,7 +226,6 @@ def _get_rank_subplot_info(

colors[infeasible_trial_ids] = (204, 204, 204)
colors = colors[filtered_ids]

return _RankSubplotInfo(
xaxis=xaxis,
yaxis=yaxis,
Expand Down

0 comments on commit 172a0f5

Please sign in to comment.