Spaces:
Sleeping
Sleeping
Commit ·
1545384
1
Parent(s): d0d5167
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def train(data, alpha=0.0001, epochs=500, test_data=[1,2,3]):
|
|
| 61 |
showlegend=False
|
| 62 |
)
|
| 63 |
y_pred_test = a * test_data.astype(np.float64) + b
|
| 64 |
-
return f"
|
| 65 |
|
| 66 |
# gradio app
|
| 67 |
|
|
|
|
| 61 |
showlegend=False
|
| 62 |
)
|
| 63 |
y_pred_test = a * test_data.astype(np.float64) + b
|
| 64 |
+
return f"{round(updated_a[-1],3)} * X + {round(updated_b[-1],3)}",fig3, fig4, np.concatenate((test_data.astype(np.float64), y_pred_test), axis=1)
|
| 65 |
|
| 66 |
# gradio app
|
| 67 |
|