Update app.py
Browse files
app.py
CHANGED
|
@@ -63,13 +63,13 @@ def plot_figure(N, u1, std1, u2, std2, show_dist, classifier=None):
|
|
| 63 |
|
| 64 |
|
| 65 |
if show_dist:
|
| 66 |
-
x = np.arange(x_min, x_max, 0.01
|
| 67 |
x, y, u, s = gaussian(x, 10000, np.mean(points_class1), np.std(points_class1) )
|
| 68 |
pp.plot(x, y)
|
| 69 |
#pp.plot(x, y, label=r'$Gaussian (\mu=%.2f,\ \sigma=%.2f)$' % (u, s))
|
| 70 |
|
| 71 |
|
| 72 |
-
x = np.arange(x_min, x_max, 0.01
|
| 73 |
x, y, u, s = gaussian(x, 10000, np.mean(points_class2), np.std(points_class2) )
|
| 74 |
pp.plot(x, y)
|
| 75 |
#pp.plot(x, y, label=r'$Gaussian (\mu=%.2f,\ \sigma=%.2f)$' % (u, s))
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
if show_dist:
|
| 66 |
+
x = np.arange(x_min, x_max, 0.01) # define range of x
|
| 67 |
x, y, u, s = gaussian(x, 10000, np.mean(points_class1), np.std(points_class1) )
|
| 68 |
pp.plot(x, y)
|
| 69 |
#pp.plot(x, y, label=r'$Gaussian (\mu=%.2f,\ \sigma=%.2f)$' % (u, s))
|
| 70 |
|
| 71 |
|
| 72 |
+
x = np.arange(x_min, x_max, 0.01) # define range of x
|
| 73 |
x, y, u, s = gaussian(x, 10000, np.mean(points_class2), np.std(points_class2) )
|
| 74 |
pp.plot(x, y)
|
| 75 |
#pp.plot(x, y, label=r'$Gaussian (\mu=%.2f,\ \sigma=%.2f)$' % (u, s))
|