Skip to content

Instantly share code, notes, and snippets.

@BenTenmann
Created January 24, 2021 13:44
Show Gist options
  • Save BenTenmann/115a78233e57613e6459ed2f56df91c4 to your computer and use it in GitHub Desktop.
Save BenTenmann/115a78233e57613e6459ed2f56df91c4 to your computer and use it in GitHub Desktop.
tds_2
epochs = 500 # number of epochs
epsilon = 0.01 # learning rate || step size
inputs = list(product([-1,1], repeat=10)) # produces all 1024 permutations
w = uniform.rvs(size=11) # weight initialisation
ep_err = [] # initialise list for per-epoch error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment