{"action":"created","issue":{"url":"https://api.github.com/repos/thelahunginjeet/rpy2ica/issues/1","repository_url":"https://api.github.com/repos/thelahunginjeet/rpy2ica","labels_url":"https://api.github.com/repos/thelahunginjeet/rpy2ica/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/thelahunginjeet/rpy2ica/issues/1/comments","events_url":"https://api.github.com/repos/thelahunginjeet/rpy2ica/issues/1/events","html_url":"https://github.com/thelahunginjeet/rpy2ica/issues/1","id":196351784,"number":1,"title":"Not sure how to shape my matrix to interface with your code?","user":{"login":"maxwolff","id":7957591,"avatar_url":"https://avatars.githubusercontent.com/u/7957591?v=3","gravatar_id":"","url":"https://api.github.com/users/maxwolff","html_url":"https://github.com/maxwolff","followers_url":"https://api.github.com/users/maxwolff/followers","following_url":"https://api.github.com/users/maxwolff/following{/other_user}","gists_url":"https://api.github.com/users/maxwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/maxwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxwolff/subscriptions","organizations_url":"https://api.github.com/users/maxwolff/orgs","repos_url":"https://api.github.com/users/maxwolff/repos","events_url":"https://api.github.com/users/maxwolff/events{/privacy}","received_events_url":"https://api.github.com/users/maxwolff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-19T07:57:19Z","updated_at":"2016-12-19T21:02:08Z","closed_at":"2016-12-19T19:22:00Z","body":"<img width=\"879\" alt=\"screen shot 2016-12-18 at 11 56 08 pm\" src=\"https://cloud.githubusercontent.com/assets/7957591/21304969/9f9731da-c57d-11e6-89cc-b5bb9a9f7ffc.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/thelahunginjeet/rpy2ica/issues/comments/268077414","html_url":"https://github.com/thelahunginjeet/rpy2ica/issues/1#issuecomment-268077414","issue_url":"https://api.github.com/repos/thelahunginjeet/rpy2ica/issues/1","id":268077414,"user":{"login":"thelahunginjeet","id":619756,"avatar_url":"https://avatars.githubusercontent.com/u/619756?v=3","gravatar_id":"","url":"https://api.github.com/users/thelahunginjeet","html_url":"https://github.com/thelahunginjeet","followers_url":"https://api.github.com/users/thelahunginjeet/followers","following_url":"https://api.github.com/users/thelahunginjeet/following{/other_user}","gists_url":"https://api.github.com/users/thelahunginjeet/gists{/gist_id}","starred_url":"https://api.github.com/users/thelahunginjeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelahunginjeet/subscriptions","organizations_url":"https://api.github.com/users/thelahunginjeet/orgs","repos_url":"https://api.github.com/users/thelahunginjeet/repos","events_url":"https://api.github.com/users/thelahunginjeet/events{/privacy}","received_events_url":"https://api.github.com/users/thelahunginjeet/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T21:02:08Z","updated_at":"2016-12-19T21:02:08Z","body":"Max,\r\n\r\nIf you are having the same problem with pyica, it’s definitely something you are doing.\r\n\r\nBoth of these packages should be fine with numpy.array, but I’m not sure about numpy.matrix - they were designed to used with numpy.array.   You could try:\r\n\r\nX = np.vstack([a,b])\r\n\r\nto make the signal matrix.mmBefore you call fastica, make sure X is of array type and its shape is (2,XXX) where XXX is whatever number of samples you get from 2 seconds of signal at whatever sampling rate you are using.  I routinely use these packages on pretty large arrays, so it should not be a real size problem.\r\n\r\nBest,\r\nKevin\r\n\r\n\r\nAssistant Professor\r\nBiomedical Engineering/Physics/Chemical and Biomolecular Engineering/Marine Sciences\r\nInstitute for Systems Genomics\r\nCT Institute for the Brain & Cognitive Sciences\r\nUniversity of Connecticut\r\n260 Glenbrook Rd, Unit 3247\r\nStorrs, CT 06269-3247\r\nTel: 860-486-6975/860-405-9136\r\nFax: 860-486-2500\r\nemail: kevin.s.brown@uconn.edu<mailto:kevin.s.brown@uconn.edu>\r\nweb: http://kbrown.research.uconn.edu\r\n\r\n\r\n\r\nOn Dec 19, 2016, at 2:43 PM, Max Wolff <notifications@github.com<mailto:notifications@github.com>> wrote:\r\n\r\nHey,\r\n\r\nI'm thinking it could easily be that I'm misunderstanding how to use numpy\r\nmatrices. The files I'm loading are two seconds each, not close to being\r\n'too big' for anything. Are numpy matrices how you intended your library to\r\nbe used?\r\n\r\nOn Mon, Dec 19, 2016 at 12:37 PM, Max Wolff <max3@stanford.edu<mailto:max3@stanford.edu>> wrote:\r\n\r\n> Kevin,\r\n>\r\n> I apologize for that mistake, but its not the source of the error. I made\r\n> a mistake in incorrectly renaming that variable in my notebook before\r\n> sending. Anyway, I'm getting the same error after correcting that mistake,\r\n> as shown in a screenshot below. I'm also passing your tests, so I don't\r\n> think its an install error.\r\n>\r\n> I took your advice and tried your pyica, and I'm getting a different error\r\n> there. \"Shape too large to be a matrix\".\r\n>\r\n> Could you give me an example of usage here?\r\n>\r\n> Thanks in advance for your help, it's much appreciated!\r\n>\r\n> On Mon, Dec 19, 2016 at 11:22 AM, Kevin Brown <notifications@github.com<mailto:notifications@github.com>>\r\n> wrote:\r\n>\r\n>> Closed #1 <https://github.com/thelahunginjeet/rpy2ica/issues/1>.\r\n>>\r\n>> —\r\n>> You are receiving this because you authored the thread.\r\n>> Reply to this email directly, view it on GitHub\r\n>> <https://github.com/thelahunginjeet/rpy2ica/issues/1#event-899103001>,\r\n>> or mute the thread\r\n>> <https://github.com/notifications/unsubscribe-auth/AHlsVyPIsGtLBm7i7PissMya5Gt7PvXmks5rJtlYgaJpZM4LQdW->\r\n>> .\r\n>>\r\n>\r\n>\r\n>\r\n> --\r\n> Max Wolff\r\n> B.A. Candidate | Economics\r\n> Stanford University | Class of 2016\r\n> LinkedIn <https://www.linkedin.com/pub/max-wolff/70/4b6/33a> | Github\r\n> <https://github.com/maxwolff>\r\n>\r\n\r\n\r\n\r\n--\r\nMax Wolff\r\nB.A. Candidate | Economics\r\nStanford University | Class of 2016\r\nLinkedIn <https://www.linkedin.com/pub/max-wolff/70/4b6/33a> | Github\r\n<https://github.com/maxwolff>\r\n\r\n—\r\nYou are receiving this because you modified the open/close state.\r\nReply to this email directly, view it on GitHub<https://github.com/thelahunginjeet/rpy2ica/issues/1#issuecomment-268072984>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAl07KRs3JSIsDxydymYTZvcku4oryUqks5rJuyGgaJpZM4LQdW->.\r\n\r\n"}}
{"actor":{"display_login":"thelahunginjeet"}}