Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def do_train(n_samples, n_outliers):
|
|
| 56 |
line_y = lr.predict(line_X)
|
| 57 |
line_y_ransac = ransac.predict(line_X)
|
| 58 |
|
| 59 |
-
text = f"True coefficients: {coef:.4f}.\
|
| 60 |
|
| 61 |
fig, axes = plt.subplots()
|
| 62 |
|
|
|
|
| 56 |
line_y = lr.predict(line_X)
|
| 57 |
line_y_ransac = ransac.predict(line_X)
|
| 58 |
|
| 59 |
+
text = f"True coefficients: {coef:.4f}.\nLinear regression coefficients: {lr.coef_[0]:.4f}.\nRANSAC coefficients: {ransac.estimator_.coef_[0]:.4f}."
|
| 60 |
|
| 61 |
fig, axes = plt.subplots()
|
| 62 |
|