{"action":"created","issue":{"url":"https://api.github.com/repos/lulab/teaching_book/issues/20","repository_url":"https://api.github.com/repos/lulab/teaching_book","labels_url":"https://api.github.com/repos/lulab/teaching_book/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/lulab/teaching_book/issues/20/comments","events_url":"https://api.github.com/repos/lulab/teaching_book/issues/20/events","html_url":"https://github.com/lulab/teaching_book/issues/20","id":375829283,"node_id":"MDU6SXNzdWUzNzU4MjkyODM=","number":20,"title":"simplify machine learning with R","user":{"login":"dongzhuoer","id":15871952,"node_id":"MDQ6VXNlcjE1ODcxOTUy","avatar_url":"https://avatars2.githubusercontent.com/u/15871952?v=4","gravatar_id":"","url":"https://api.github.com/users/dongzhuoer","html_url":"https://github.com/dongzhuoer","followers_url":"https://api.github.com/users/dongzhuoer/followers","following_url":"https://api.github.com/users/dongzhuoer/following{/other_user}","gists_url":"https://api.github.com/users/dongzhuoer/gists{/gist_id}","starred_url":"https://api.github.com/users/dongzhuoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongzhuoer/subscriptions","organizations_url":"https://api.github.com/users/dongzhuoer/orgs","repos_url":"https://api.github.com/users/dongzhuoer/repos","events_url":"https://api.github.com/users/dongzhuoer/events{/privacy}","received_events_url":"https://api.github.com/users/dongzhuoer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-31T07:17:59Z","updated_at":"2018-10-31T08:30:08Z","closed_at":null,"author_association":"COLLABORATOR","body":"```r\r\ntest_labels <- vector('integer', length(test_classes))\r\ntest_labels[test_classes == positive_class] <- 1\r\n```\r\n\r\nbeginners may not know default value for `integer` is `0`"},"comment":{"url":"https://api.github.com/repos/lulab/teaching_book/issues/comments/434601734","html_url":"https://github.com/lulab/teaching_book/issues/20#issuecomment-434601734","issue_url":"https://api.github.com/repos/lulab/teaching_book/issues/20","id":434601734,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDYwMTczNA==","user":{"login":"dongzhuoer","id":15871952,"node_id":"MDQ6VXNlcjE1ODcxOTUy","avatar_url":"https://avatars2.githubusercontent.com/u/15871952?v=4","gravatar_id":"","url":"https://api.github.com/users/dongzhuoer","html_url":"https://github.com/dongzhuoer","followers_url":"https://api.github.com/users/dongzhuoer/followers","following_url":"https://api.github.com/users/dongzhuoer/following{/other_user}","gists_url":"https://api.github.com/users/dongzhuoer/gists{/gist_id}","starred_url":"https://api.github.com/users/dongzhuoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongzhuoer/subscriptions","organizations_url":"https://api.github.com/users/dongzhuoer/orgs","repos_url":"https://api.github.com/users/dongzhuoer/repos","events_url":"https://api.github.com/users/dongzhuoer/events{/privacy}","received_events_url":"https://api.github.com/users/dongzhuoer/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T08:30:08Z","updated_at":"2018-10-31T08:30:08Z","author_association":"COLLABORATOR","body":"```r\r\ntest_labels <- vector('integer', length(test_classes))\r\ntest_labels[test_classes == positive_class] <- 1\r\n```\r\n\r\nbeginners may not know default value for `integer` is `0`"}}
{"actor":{"display_login":"dongzhuoer"}}