{"action":"opened","issue":{"url":"https://api.github.com/repos/gdkrmr/WeightedOnlineStats.jl/issues/13","repository_url":"https://api.github.com/repos/gdkrmr/WeightedOnlineStats.jl","labels_url":"https://api.github.com/repos/gdkrmr/WeightedOnlineStats.jl/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/gdkrmr/WeightedOnlineStats.jl/issues/13/comments","events_url":"https://api.github.com/repos/gdkrmr/WeightedOnlineStats.jl/issues/13/events","html_url":"https://github.com/gdkrmr/WeightedOnlineStats.jl/issues/13","id":386711674,"node_id":"MDU6SXNzdWUzODY3MTE2NzQ=","number":13,"title":"track mean weights instead of total weight","user":{"login":"gdkrmr","id":12512930,"node_id":"MDQ6VXNlcjEyNTEyOTMw","avatar_url":"https://avatars1.githubusercontent.com/u/12512930?v=4","gravatar_id":"","url":"https://api.github.com/users/gdkrmr","html_url":"https://github.com/gdkrmr","followers_url":"https://api.github.com/users/gdkrmr/followers","following_url":"https://api.github.com/users/gdkrmr/following{/other_user}","gists_url":"https://api.github.com/users/gdkrmr/gists{/gist_id}","starred_url":"https://api.github.com/users/gdkrmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdkrmr/subscriptions","organizations_url":"https://api.github.com/users/gdkrmr/orgs","repos_url":"https://api.github.com/users/gdkrmr/repos","events_url":"https://api.github.com/users/gdkrmr/events{/privacy}","received_events_url":"https://api.github.com/users/gdkrmr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-03T08:42:23Z","updated_at":"2018-12-03T08:42:23Z","closed_at":null,"author_association":"OWNER","body":"Summing up weights will result in loss of precision.\r\n```\r\no.W += w\r\n```\r\nQuestion: Is it better to carry around the mean of the weights and the number of samples?\r\n```\r\no.\\muW = smooth(o.W, w, 1/o.n)\r\no.n += 1\r\n\r\no.W := o.\\muW * o.n\r\n```\r\n\r\nMu best guess is that these have have the same rate of producing errors."}}
{"actor":{"display_login":"gdkrmr"}}