Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
UvA DL Tutorial 3: Removing unused variable
  • Loading branch information
phlippe committed Jan 4, 2023
commit a3f88be1c3f2d20f9f1fb7a0b307e3aeb164b64b
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ def pathological_curve_loss(w1, w2):
def plot_curve(
curve_fn, x_range=(-5, 5), y_range=(-5, 5), plot_3d=False, cmap=cm.viridis, title="Pathological curvature"
):
fig = plt.figure()
_ = plt.figure()
ax = plt.axes(projection="3d") if plot_3d else plt.axes()

x = torch.arange(x_range[0], x_range[1], (x_range[1] - x_range[0]) / 100.0)
Expand Down