Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def rbf_kernel(x1, x2, lengthscale, variance):
|
|
| 15 |
dist_sqr = (x1_ - x2_) ** 2
|
| 16 |
return variance * np.exp(-dist_sqr)
|
| 17 |
|
| 18 |
-
fig, ax = plt.subplots()
|
| 19 |
|
| 20 |
x_train = np.array([0.2, 0.5, 0.8]).reshape(-1,1)
|
| 21 |
y_train = np.array([0.8, 0.3, 0.6]).reshape(-1,1)
|
|
|
|
| 15 |
dist_sqr = (x1_ - x2_) ** 2
|
| 16 |
return variance * np.exp(-dist_sqr)
|
| 17 |
|
| 18 |
+
fig, ax = plt.subplots(figsize=(10,4))
|
| 19 |
|
| 20 |
x_train = np.array([0.2, 0.5, 0.8]).reshape(-1,1)
|
| 21 |
y_train = np.array([0.8, 0.3, 0.6]).reshape(-1,1)
|