Skip to content

Instantly share code, notes, and snippets.

View willkurt's full-sized avatar

Will Kurt willkurt

View GitHub Profile
# NOTE: This is gross, but it contains the plotting code to build this:
# https://twitter.com/willkurt/status/1351242237963874311
# ImageMagick does all the gif work: convert *.png -delay 60 -duplicate 20,22 logistic.gif
# This optimization loop is not idea for any other purpose than snapshotting the learning
lr = 0.000005
init_nll = nll(y_train,X_train,w)
next_nll = 0
img_ctr = 0
iters = 10
while (init_nll - next_nll) > 10: