Skip to content

Commit

Permalink
add constraint plots using log_total_constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmald committed Jan 3, 2025
1 parent 30794f1 commit d903c68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blop/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ def _plot_objs_many_dofs(agent, axes=(0, 1), shading="nearest", cmap=DEFAULT_COL
if obj.constraint is None:
# test_constraint = obj.constraint_probability(model_inputs).detach().squeeze().numpy()
test_constraint = agent.constraint(model_inputs).squeeze().numpy()
else:
test_constraint = obj.constraint_probability(model_inputs).detach().squeeze().numpy()

fitness_ax = None
fit_err_ax = None
Expand Down

0 comments on commit d903c68

Please sign in to comment.