{"action":"created","issue":{"url":"https://api.github.com/repos/peterwittek/somoclu/issues/127","repository_url":"https://api.github.com/repos/peterwittek/somoclu","labels_url":"https://api.github.com/repos/peterwittek/somoclu/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/peterwittek/somoclu/issues/127/comments","events_url":"https://api.github.com/repos/peterwittek/somoclu/issues/127/events","html_url":"https://github.com/peterwittek/somoclu/issues/127","id":342542184,"node_id":"MDU6SXNzdWUzNDI1NDIxODQ=","number":127,"title":"RCPP Not Compatible","user":{"login":"lkoll","id":21284577,"node_id":"MDQ6VXNlcjIxMjg0NTc3","avatar_url":"https://avatars3.githubusercontent.com/u/21284577?v=4","gravatar_id":"","url":"https://api.github.com/users/lkoll","html_url":"https://github.com/lkoll","followers_url":"https://api.github.com/users/lkoll/followers","following_url":"https://api.github.com/users/lkoll/following{/other_user}","gists_url":"https://api.github.com/users/lkoll/gists{/gist_id}","starred_url":"https://api.github.com/users/lkoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkoll/subscriptions","organizations_url":"https://api.github.com/users/lkoll/orgs","repos_url":"https://api.github.com/users/lkoll/repos","events_url":"https://api.github.com/users/lkoll/events{/privacy}","received_events_url":"https://api.github.com/users/lkoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-19T01:00:51Z","updated_at":"2018-07-24T14:13:15Z","closed_at":null,"author_association":"NONE","body":"I am attempting to use the R implementation of Rsomoclu.train with the following parameters on a sparse matrix, dimensions 480k x 18k.\r\n\r\n```\r\nnEpochs<-5\r\nnx<-70\r\nny<-70\r\nsom_train<-Rsomoclu.train(dfm,\r\n                          nEpoch=nEpochs,\r\n                          nSomX = nx,\r\n                          nSomY = ny,\r\n                          kernelType = 2,\r\n                          radius0 = 0,\r\n                          radiusN = 1,\r\n                          radiusCooling = \"linear\",\r\n                          scale0 = 1,\r\n                          scaleN = .01,\r\n                          scaleCooling = \"linear\")\r\n```\r\nWhen I run this it fails almost instantly with the following error:\r\n\r\n```\r\n> som_train<-Rsomoclu.train(dfm,\r\n+                           nEpoch=nEpochs,\r\n+                           nSomX = nx,\r\n+                           nSomY .... [TRUNCATED] \r\nterminate called after throwing an instance of 'Rcpp::not_compatible'\r\n  what():  Not compatible with requested type: [type=S4; target=double].\r\n\r\n```\r\nAm I setting a parameter incorrectly?"},"comment":{"url":"https://api.github.com/repos/peterwittek/somoclu/issues/comments/407421323","html_url":"https://github.com/peterwittek/somoclu/issues/127#issuecomment-407421323","issue_url":"https://api.github.com/repos/peterwittek/somoclu/issues/127","id":407421323,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQyMTMyMw==","user":{"login":"lkoll","id":21284577,"node_id":"MDQ6VXNlcjIxMjg0NTc3","avatar_url":"https://avatars3.githubusercontent.com/u/21284577?v=4","gravatar_id":"","url":"https://api.github.com/users/lkoll","html_url":"https://github.com/lkoll","followers_url":"https://api.github.com/users/lkoll/followers","following_url":"https://api.github.com/users/lkoll/following{/other_user}","gists_url":"https://api.github.com/users/lkoll/gists{/gist_id}","starred_url":"https://api.github.com/users/lkoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkoll/subscriptions","organizations_url":"https://api.github.com/users/lkoll/orgs","repos_url":"https://api.github.com/users/lkoll/repos","events_url":"https://api.github.com/users/lkoll/events{/privacy}","received_events_url":"https://api.github.com/users/lkoll/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T14:13:15Z","updated_at":"2018-07-24T14:13:15Z","author_association":"NONE","body":"I don't think that's my issue. When you read in the data use the \"Matrix\" package readMM function as follows. It is already in sparse matrix form when I run it.\r\n\r\n```\r\ndfm<-readMM(\"MWE.txt\")\r\n> str(dfm)\r\nFormal class 'dgTMatrix' [package \"Matrix\"] with 6 slots\r\n  ..@ i       : int [1:220352] 378 303 532 652 699 920 923 966 977 239 ...\r\n  ..@ j       : int [1:220352] 0 6 6 6 6 6 6 6 6 7 ...\r\n  ..@ Dim     : int [1:2] 1000 17770\r\n  ..@ Dimnames:List of 2\r\n  .. ..$ : NULL\r\n  .. ..$ : NULL\r\n  ..@ x       : num [1:220352] 4 5 1 2 3 2 5 5 2 2 ...\r\n  ..@ factors : list()\r\n```\r\n"}}
{"actor":{"display_login":"lkoll"}}