Skip to content

Instantly share code, notes, and snippets.

@Mizzlr
Created June 29, 2016 10:57
Show Gist options
  • Save Mizzlr/84225c2949658b6b36d72aa79f5ff89e to your computer and use it in GitHub Desktop.
Save Mizzlr/84225c2949658b6b36d72aa79f5ff89e to your computer and use it in GitHub Desktop.
function W = randInitializeWeights(L_in, L_out)
epsilon_init = 0.12;
W = rand(L_out, 1 + L_in) * 2 * epsilon_init - epsilon_init;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment