This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cs501r_f2016:lab4 [2016/09/12 16:34] wingated |
cs501r_f2016:lab4 [2021/06/30 23:42] (current) |
||
---|---|---|---|
Line 71: | Line 71: | ||
step_size = 0.1 | step_size = 0.1 | ||
for i in range(0,NUM_EPOCHS): | for i in range(0,NUM_EPOCHS): | ||
- | loss_function_value = loss_function( W ) | + | loss_function_value_t = loss_function( W ) |
- | grad = grad_f( W ) | + | grad_t = grad_f( W ) |
- | W = W - step_size * grad | + | W = W - step_size * grad_t |
</code> | </code> | ||