Spaces:
Runtime error
Runtime error
Add training loop
Browse files
app.py
CHANGED
@@ -59,5 +59,12 @@ else:
|
|
59 |
2\delta|y^{(i)}-\hat{y}^{(i)}| - \delta^2 & \text{otherwise}
|
60 |
\end{cases}''')
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
|
|
|
|
|
63 |
st.write(X[:5, :])
|
|
|
59 |
2\delta|y^{(i)}-\hat{y}^{(i)}| - \delta^2 & \text{otherwise}
|
60 |
\end{cases}''')
|
61 |
|
62 |
+
st.markdown('The training loop:')
|
63 |
+
|
64 |
+
code = '''NUM_ITER = 1000
|
65 |
+
for i in range(NUM_ITER):
|
66 |
+
w -= learning_rte * grad_loss(w)'''
|
67 |
|
68 |
+
st.code(code, language='python')
|
69 |
+
|
70 |
st.write(X[:5, :])
|