{"action":"created","issue":{"url":"https://api.github.com/repos/gmum/gmum.r/issues/483","labels_url":"https://api.github.com/repos/gmum/gmum.r/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/gmum/gmum.r/issues/483/comments","events_url":"https://api.github.com/repos/gmum/gmum.r/issues/483/events","html_url":"https://github.com/gmum/gmum.r/issues/483","id":73636235,"number":483,"title":"SVM predicting single vector","user":{"login":"igorsieradzki","id":6382449,"avatar_url":"https://avatars.githubusercontent.com/u/6382449?v=3","gravatar_id":"","url":"https://api.github.com/users/igorsieradzki","html_url":"https://github.com/igorsieradzki","followers_url":"https://api.github.com/users/igorsieradzki/followers","following_url":"https://api.github.com/users/igorsieradzki/following{/other_user}","gists_url":"https://api.github.com/users/igorsieradzki/gists{/gist_id}","starred_url":"https://api.github.com/users/igorsieradzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorsieradzki/subscriptions","organizations_url":"https://api.github.com/users/igorsieradzki/orgs","repos_url":"https://api.github.com/users/igorsieradzki/repos","events_url":"https://api.github.com/users/igorsieradzki/events{/privacy}","received_events_url":"https://api.github.com/users/igorsieradzki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gmum/gmum.r/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/gmum/gmum.r/labels/svm","name":"svm","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"ktalik","id":858917,"avatar_url":"https://avatars.githubusercontent.com/u/858917?v=3","gravatar_id":"","url":"https://api.github.com/users/ktalik","html_url":"https://github.com/ktalik","followers_url":"https://api.github.com/users/ktalik/followers","following_url":"https://api.github.com/users/ktalik/following{/other_user}","gists_url":"https://api.github.com/users/ktalik/gists{/gist_id}","starred_url":"https://api.github.com/users/ktalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktalik/subscriptions","organizations_url":"https://api.github.com/users/ktalik/orgs","repos_url":"https://api.github.com/users/ktalik/repos","events_url":"https://api.github.com/users/ktalik/events{/privacy}","received_events_url":"https://api.github.com/users/ktalik/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gmum/gmum.r/milestones/30","html_url":"https://github.com/gmum/gmum.r/milestones/13.05%20Meeting","labels_url":"https://api.github.com/repos/gmum/gmum.r/milestones/30/labels","id":1098662,"number":30,"title":"13.05 Meeting","description":"","creator":{"login":"ktalik","id":858917,"avatar_url":"https://avatars.githubusercontent.com/u/858917?v=3","gravatar_id":"","url":"https://api.github.com/users/ktalik","html_url":"https://github.com/ktalik","followers_url":"https://api.github.com/users/ktalik/followers","following_url":"https://api.github.com/users/ktalik/following{/other_user}","gists_url":"https://api.github.com/users/ktalik/gists{/gist_id}","starred_url":"https://api.github.com/users/ktalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktalik/subscriptions","organizations_url":"https://api.github.com/users/ktalik/orgs","repos_url":"https://api.github.com/users/ktalik/repos","events_url":"https://api.github.com/users/ktalik/events{/privacy}","received_events_url":"https://api.github.com/users/ktalik/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-05-06T14:39:24Z","updated_at":"2015-05-06T14:59:44Z","due_on":"2015-05-12T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-05-06T14:19:38Z","updated_at":"2015-05-06T14:59:44Z","closed_at":"2015-05-06T14:59:44Z","body":"```\r\n> X <- matrix(c(c(0,1), c(1,0)), 2)\r\n> y <- c(0, 1)\r\n> c <- SVM(X, y)\r\noptimization finished, #iter = 1\r\nWarning message:\r\nIn SVM.default(X, y) : It is recommended to pass y as factor\r\n> predict(c, X[1,])\r\n\r\nerror: dot(): incompatible matrix dimensions: 1x1 and 1x2\r\n\r\n Show Traceback\r\n \r\n Rerun with Debug\r\n Error: dot(): incompatible matrix dimensions: 1x1 and 1x2 \r\n```\r\n\r\nThis should work"},"comment":{"url":"https://api.github.com/repos/gmum/gmum.r/issues/comments/99503141","html_url":"https://github.com/gmum/gmum.r/issues/483#issuecomment-99503141","issue_url":"https://api.github.com/repos/gmum/gmum.r/issues/483","id":99503141,"user":{"login":"igorsieradzki","id":6382449,"avatar_url":"https://avatars.githubusercontent.com/u/6382449?v=3","gravatar_id":"","url":"https://api.github.com/users/igorsieradzki","html_url":"https://github.com/igorsieradzki","followers_url":"https://api.github.com/users/igorsieradzki/followers","following_url":"https://api.github.com/users/igorsieradzki/following{/other_user}","gists_url":"https://api.github.com/users/igorsieradzki/gists{/gist_id}","starred_url":"https://api.github.com/users/igorsieradzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorsieradzki/subscriptions","organizations_url":"https://api.github.com/users/igorsieradzki/orgs","repos_url":"https://api.github.com/users/igorsieradzki/repos","events_url":"https://api.github.com/users/igorsieradzki/events{/privacy}","received_events_url":"https://api.github.com/users/igorsieradzki/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T14:59:44Z","updated_at":"2015-05-06T14:59:44Z","body":"It was R fault, casting vector with size *n* to matrix gives (*n*,1)"}}