Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luluxing3 committed Mar 18, 2020
2 parents 83a7baf + cc6c753 commit 3fc003e
Show file tree
Hide file tree
Showing 43 changed files with 9,216 additions and 16 deletions.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion Assignments/assignment2/logan0czy/sgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def sgd(f, x0, step, iterations, postprocessing=None, useSaved=False,

loss = None
### YOUR CODE HERE (~2 lines)

loss, grad_x = f(x)
x -= step * grad_x
### END YOUR CODE

x = postprocessing(x)
Expand Down
Loading

0 comments on commit 3fc003e

Please sign in to comment.