Skip to content

Commit

Permalink
fix fitness plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmald committed Jan 2, 2025
1 parent 9fc28ea commit 09e4f9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blop/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def _plot_objs_many_dofs(agent, axes=(0, 1), shading="nearest", cmap=DEFAULT_COL

model_inputs = agent.dofs(active=True).transform(test_inputs)

print(agent.objectives)

for obj_index, obj in enumerate(agent.objectives):
targets = agent.train_targets()[obj.name].numpy()

Expand Down Expand Up @@ -192,7 +194,7 @@ def _plot_objs_many_dofs(agent, axes=(0, 1), shading="nearest", cmap=DEFAULT_COL
# cmap=cmap,
# norm=val_norm,
# )
if obj.constraint is not None:
if obj.constraint is None:
fitness_ax = agent.obj_axes[obj_index, 1].pcolormesh(
test_x,
test_y,
Expand Down

0 comments on commit 09e4f9e

Please sign in to comment.