Skip to content

Commit

Permalink
Split loss plot
Browse files Browse the repository at this point in the history
  • Loading branch information
adjavon committed Aug 20, 2024
1 parent 7d92477 commit b454546
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,13 @@ def copy_parameters(source_model, target_model):
# %% [markdown] tags=[]
# Once training is complete, we can plot the losses to see how well the model is doing.
# %%
plt.plot(losses["cycle"], label="Cycle loss")
plt.plot(losses["adv"], label="Adversarial loss")
plt.plot(losses["disc"], label="Discriminator loss")
plt.legend()
fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(15, 5))
ax1.plot(losses["cycle"])
ax1.set_title("Cycle loss")
ax2.plot(losses["adv"])
ax2.set_title("Adversarial loss")
ax3.plot(losses["disc"])
ax3.set_title("Discriminator loss")
plt.show()

# %% [markdown] tags=[]
Expand Down

0 comments on commit b454546

Please sign in to comment.