Skip to content

Instantly share code, notes, and snippets.

@jonnylaw
Last active July 18, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnylaw/9ad420657a7cc3110c1ec6ce531e437f to your computer and use it in GitHub Desktop.
Save jonnylaw/9ad420657a7cc3110c1ec6ce531e437f to your computer and use it in GitHub Desktop.
type Parameters = DenseVector[Double]
def proposal(delta: Double): Parameters => Rand[Parameters] = p => {
for {
d <- Gaussian(0, delta)
params = p mapValues (d + _)
} yield params
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment