Spaces:
Runtime error
Runtime error
Fix indentation in the code snippet
Browse files
app.py
CHANGED
@@ -62,11 +62,11 @@ else:
|
|
62 |
st.markdown('The training loop:')
|
63 |
|
64 |
code = '''NUM_ITER = 1000
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
|
71 |
st.code(code, language='python')
|
72 |
|
|
|
62 |
st.markdown('The training loop:')
|
63 |
|
64 |
code = '''NUM_ITER = 1000
|
65 |
+
# initialize parameters
|
66 |
+
w = np.array([3., -2., -8.])
|
67 |
+
for i in range(NUM_ITER):
|
68 |
+
# update parameters
|
69 |
+
w -= learning_rte * grad_loss(w)'''
|
70 |
|
71 |
st.code(code, language='python')
|
72 |
|