{"action":"created","issue":{"url":"https://api.github.com/repos/mratsim/Arraymancer/issues/266","repository_url":"https://api.github.com/repos/mratsim/Arraymancer","labels_url":"https://api.github.com/repos/mratsim/Arraymancer/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/mratsim/Arraymancer/issues/266/comments","events_url":"https://api.github.com/repos/mratsim/Arraymancer/issues/266/events","html_url":"https://github.com/mratsim/Arraymancer/pull/266","id":350276780,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MTY1OTA3","number":266,"title":"Bugfix for bug in kmeans initialization","user":{"login":"metasyn","id":1719730,"node_id":"MDQ6VXNlcjE3MTk3MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/1719730?v=4","gravatar_id":"","url":"https://api.github.com/users/metasyn","html_url":"https://github.com/metasyn","followers_url":"https://api.github.com/users/metasyn/followers","following_url":"https://api.github.com/users/metasyn/following{/other_user}","gists_url":"https://api.github.com/users/metasyn/gists{/gist_id}","starred_url":"https://api.github.com/users/metasyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metasyn/subscriptions","organizations_url":"https://api.github.com/users/metasyn/orgs","repos_url":"https://api.github.com/users/metasyn/repos","events_url":"https://api.github.com/users/metasyn/events{/privacy}","received_events_url":"https://api.github.com/users/metasyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-14T04:29:38Z","updated_at":"2018-08-14T13:50:57Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/mratsim/Arraymancer/pulls/266","html_url":"https://github.com/mratsim/Arraymancer/pull/266","diff_url":"https://github.com/mratsim/Arraymancer/pull/266.diff","patch_url":"https://github.com/mratsim/Arraymancer/pull/266.patch"},"body":"Rather silly bug I noticed today when giving a short presentation on nim.\r\n\r\nThe random value chosen should be be between 0 and n-1, rather than n (where n is the number of rows), since using n as the slice will result in an index out of bounds.\r\n\r\nI also refactored the tests a little to make it easier to update in the future, saving the data and expected results into npy files. "},"comment":{"url":"https://api.github.com/repos/mratsim/Arraymancer/issues/comments/412878505","html_url":"https://github.com/mratsim/Arraymancer/pull/266#issuecomment-412878505","issue_url":"https://api.github.com/repos/mratsim/Arraymancer/issues/266","id":412878505,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjg3ODUwNQ==","user":{"login":"mratsim","id":22738317,"node_id":"MDQ6VXNlcjIyNzM4MzE3","avatar_url":"https://avatars3.githubusercontent.com/u/22738317?v=4","gravatar_id":"","url":"https://api.github.com/users/mratsim","html_url":"https://github.com/mratsim","followers_url":"https://api.github.com/users/mratsim/followers","following_url":"https://api.github.com/users/mratsim/following{/other_user}","gists_url":"https://api.github.com/users/mratsim/gists{/gist_id}","starred_url":"https://api.github.com/users/mratsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mratsim/subscriptions","organizations_url":"https://api.github.com/users/mratsim/orgs","repos_url":"https://api.github.com/users/mratsim/repos","events_url":"https://api.github.com/users/mratsim/events{/privacy}","received_events_url":"https://api.github.com/users/mratsim/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T13:50:57Z","updated_at":"2018-08-14T13:50:57Z","author_association":"OWNER","body":"Thank you!"}}
{"actor":{"display_login":"mratsim"}}