{"action":"opened","issue":{"url":"https://api.github.com/repos/PAIR-code/deeplearnjs/issues/367","repository_url":"https://api.github.com/repos/PAIR-code/deeplearnjs","labels_url":"https://api.github.com/repos/PAIR-code/deeplearnjs/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/PAIR-code/deeplearnjs/issues/367/comments","events_url":"https://api.github.com/repos/PAIR-code/deeplearnjs/issues/367/events","html_url":"https://github.com/PAIR-code/deeplearnjs/issues/367","id":275568473,"number":367,"title":"utils.randGauss() has a high tail (kurtosis) during generation.","user":{"login":"nkreeger","id":306276,"avatar_url":"https://avatars2.githubusercontent.com/u/306276?v=4","gravatar_id":"","url":"https://api.github.com/users/nkreeger","html_url":"https://github.com/nkreeger","followers_url":"https://api.github.com/users/nkreeger/followers","following_url":"https://api.github.com/users/nkreeger/following{/other_user}","gists_url":"https://api.github.com/users/nkreeger/gists{/gist_id}","starred_url":"https://api.github.com/users/nkreeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkreeger/subscriptions","organizations_url":"https://api.github.com/users/nkreeger/orgs","repos_url":"https://api.github.com/users/nkreeger/repos","events_url":"https://api.github.com/users/nkreeger/events{/privacy}","received_events_url":"https://api.github.com/users/nkreeger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-21T02:52:45Z","updated_at":"2017-11-21T02:52:45Z","closed_at":null,"author_association":"COLLABORATOR","body":"I noticed that the implementation for utils.randGauss() generates a pair of values using the Marsaglia Polar Method: https://en.wikipedia.org/wiki/Marsaglia_polar_method. However, that method returns just the X value of the pair. I think this is leading to rand-normal generation having heavy tails or outliers that are tripping up some tests.\r\n\r\nI'll look at refactoring or using another method like Ziggurat algorithm : https://en.wikipedia.org/wiki/Ziggurat_algorithm\r\n"}}
{"actor":{"display_login":"nkreeger"}}