Zeel commited on
Commit
b6d6cad
·
1 Parent(s): a5b88b1

upload changes

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=(15, 5))
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")