Last active
July 18, 2016 14:29
-
-
Save jonnylaw/9ad420657a7cc3110c1ec6ce531e437f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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