User Tools

Site Tools


cs501r_f2016:lab4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs501r_f2016:lab4 [2016/09/12 09:34]
wingated
cs501r_f2016:lab4 [2016/09/13 14:08] (current)
wingated
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>​
  
cs501r_f2016/lab4.txt · Last modified: 2016/09/13 14:08 by wingated