Spaces:
Sleeping
Sleeping
upload changes
Browse files
app.py
CHANGED
@@ -79,9 +79,10 @@ losses = []
|
|
79 |
value_and_grad_fn = jax.value_and_grad(loss_fn, has_aux=True)
|
80 |
|
81 |
# initialize plot
|
82 |
-
fig, axes = plt.subplots(1, 2, figsize=(
|
83 |
axes[0].set_xlim(0, 1)
|
84 |
axes[0].set_ylim(0, 1)
|
|
|
85 |
|
86 |
value, aux = loss_fn(params)
|
87 |
(pbola_plot,) = axes[0].plot(x, parabola_fn(x), color="red")
|
|
|
79 |
value_and_grad_fn = jax.value_and_grad(loss_fn, has_aux=True)
|
80 |
|
81 |
# initialize plot
|
82 |
+
fig, axes = plt.subplots(1, 2, figsize=(12, 6))
|
83 |
axes[0].set_xlim(0, 1)
|
84 |
axes[0].set_ylim(0, 1)
|
85 |
+
axes[0].set_aspect("equal")
|
86 |
|
87 |
value, aux = loss_fn(params)
|
88 |
(pbola_plot,) = axes[0].plot(x, parabola_fn(x), color="red")
|