alkzar90 commited on
Commit
3b0e8de
1 Parent(s): e741bd4

Add training loop

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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, :])