{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-madlib/issues/81","repository_url":"https://api.github.com/repos/apache/incubator-madlib","labels_url":"https://api.github.com/repos/apache/incubator-madlib/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-madlib/issues/81/comments","events_url":"https://api.github.com/repos/apache/incubator-madlib/issues/81/events","html_url":"https://github.com/apache/incubator-madlib/pull/81","id":196580039,"number":81,"title":"JIRA: MADLIB-927 Changes made in KNN-help message-test cases-etc","user":{"login":"auonhaidar","id":11247597,"avatar_url":"https://avatars.githubusercontent.com/u/11247597?v=3","gravatar_id":"","url":"https://api.github.com/users/auonhaidar","html_url":"https://github.com/auonhaidar","followers_url":"https://api.github.com/users/auonhaidar/followers","following_url":"https://api.github.com/users/auonhaidar/following{/other_user}","gists_url":"https://api.github.com/users/auonhaidar/gists{/gist_id}","starred_url":"https://api.github.com/users/auonhaidar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auonhaidar/subscriptions","organizations_url":"https://api.github.com/users/auonhaidar/orgs","repos_url":"https://api.github.com/users/auonhaidar/repos","events_url":"https://api.github.com/users/auonhaidar/events{/privacy}","received_events_url":"https://api.github.com/users/auonhaidar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2016-12-20T03:48:56Z","updated_at":"2017-01-20T20:52:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-madlib/pulls/81","html_url":"https://github.com/apache/incubator-madlib/pull/81","diff_url":"https://github.com/apache/incubator-madlib/pull/81.diff","patch_url":"https://github.com/apache/incubator-madlib/pull/81.patch"},"body":"KNN Added\r\nUsage: \r\n\r\nselect * from madlib.knn()\r\nselect * from madlib.knn('help')\r\nselect * from madlib.knn('knn_train_data','data','label','knn_test_data','data','id','knn_results','c',3)\r\nselect * from madlib.knn('knn_train_data','data','label','knn_test_data','data','id','knn_results','r',3)\r\nselect * from madlib.knn('knn_train_data','data','label','knn_test_data','data','id','knn_results','c')\r\n\r\nYou need to enter following arguments in order:\r\nArgument 1: Training data table having training features as vector column and labels\r\nArgument 2: Name of column having feature vectors in training data table\r\nArgument 3: Name of column having actual label/vlaue for corresponding feature vector in training data table\r\nArgument 4: Test data table having features as vector column. Id of features is mandatory\r\nArgument 5: Name of column having feature vectors in test data table\r\nArgument 6: Name of column having feature vector Ids in test data table\r\nArgument 7: Name of output table\r\nArgument 8: c for classification task, r for regression task\r\nArgument 9: value of k. Default will go as 1';\r\n\r\ntest file added\r\nchanges made in main sql file and python file."},"comment":{"url":"https://api.github.com/repos/apache/incubator-madlib/issues/comments/274176961","html_url":"https://github.com/apache/incubator-madlib/pull/81#issuecomment-274176961","issue_url":"https://api.github.com/repos/apache/incubator-madlib/issues/81","id":274176961,"user":{"login":"auonhaidar","id":11247597,"avatar_url":"https://avatars.githubusercontent.com/u/11247597?v=3","gravatar_id":"","url":"https://api.github.com/users/auonhaidar","html_url":"https://github.com/auonhaidar","followers_url":"https://api.github.com/users/auonhaidar/followers","following_url":"https://api.github.com/users/auonhaidar/following{/other_user}","gists_url":"https://api.github.com/users/auonhaidar/gists{/gist_id}","starred_url":"https://api.github.com/users/auonhaidar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auonhaidar/subscriptions","organizations_url":"https://api.github.com/users/auonhaidar/orgs","repos_url":"https://api.github.com/users/auonhaidar/repos","events_url":"https://api.github.com/users/auonhaidar/events{/privacy}","received_events_url":"https://api.github.com/users/auonhaidar/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T20:52:28Z","updated_at":"2017-01-20T20:52:28Z","body":"Sure NJ, Orhan,\r\nThanks!\r\n\r\n\r\n\r\n\r\nAuon"}}
{"actor":{"display_login":"auonhaidar"}}