{"action":"created","issue":{"url":"https://api.github.com/repos/icdishb/fingerid/issues/3","repository_url":"https://api.github.com/repos/icdishb/fingerid","labels_url":"https://api.github.com/repos/icdishb/fingerid/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/icdishb/fingerid/issues/3/comments","events_url":"https://api.github.com/repos/icdishb/fingerid/issues/3/events","html_url":"https://github.com/icdishb/fingerid/issues/3","id":156879967,"number":3,"title":"error in trainSVM.py with 16 CPUs","user":{"login":"tobigithub","id":2569565,"avatar_url":"https://avatars.githubusercontent.com/u/2569565?v=3","gravatar_id":"","url":"https://api.github.com/users/tobigithub","html_url":"https://github.com/tobigithub","followers_url":"https://api.github.com/users/tobigithub/followers","following_url":"https://api.github.com/users/tobigithub/following{/other_user}","gists_url":"https://api.github.com/users/tobigithub/gists{/gist_id}","starred_url":"https://api.github.com/users/tobigithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobigithub/subscriptions","organizations_url":"https://api.github.com/users/tobigithub/orgs","repos_url":"https://api.github.com/users/tobigithub/repos","events_url":"https://api.github.com/users/tobigithub/events{/privacy}","received_events_url":"https://api.github.com/users/tobigithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T00:36:35Z","updated_at":"2016-05-26T10:42:13Z","closed_at":null,"body":"Hi,\r\nI use 16 physical CPUs and fingerid 1.4, but once I change the number of processors to 16\r\nin the file **train_test.py** \r\n\r\n````R\r\n # MODELS is the folder to store trained models.\r\n    prob= True # Set prob=True if want probability output\r\n    trainModels(train_ckm, labels, \"MODELS\", select_c=False, n_p=16, prob=prob)\r\n````\r\ni get the error below.\r\n\r\n````R\r\n~/fingerid/examples$ python train_test.py \r\n\r\nComputing combined kernel for ALIGN\r\ntrain models and make prediction\r\nCreate directory MODELS to store the trained models\r\nTraceback (most recent call last):\r\n  File \"train_test.py\", line 93, in <module>\r\n    trainModels(train_ckm, labels, \"MODELS\", select_c=False, n_p=16, prob=prob)\r\n  File \"../../fingerid/fingerid/model/trainSVM.py\", line 76, in trainModels\r\n    args=(x, labels, model_dir, task_dict[i], prob))\r\nKeyError: 10\r\n\r\n````\r\n\r\njust to double check if they are correctly detected, there are indeed 16 CPUs visible to python.\r\n\r\n\r\n```R\r\n>>> import multiprocessing\r\n>>> \r\n>>> multiprocessing.cpu_count()\r\n16\r\n>>> \r\n\r\n````\r\nAnything above 10 CPUs will throw the error. This will not happen in shen_ISMB2014.py, there I can set 32 CPUs and it will still run fine. The run time is the same, only 1 CPU in use (as reported before),\r\nTobias"},"comment":{"url":"https://api.github.com/repos/icdishb/fingerid/issues/comments/221837707","html_url":"https://github.com/icdishb/fingerid/issues/3#issuecomment-221837707","issue_url":"https://api.github.com/repos/icdishb/fingerid/issues/3","id":221837707,"user":{"login":"icdishb","id":1759355,"avatar_url":"https://avatars.githubusercontent.com/u/1759355?v=3","gravatar_id":"","url":"https://api.github.com/users/icdishb","html_url":"https://github.com/icdishb","followers_url":"https://api.github.com/users/icdishb/followers","following_url":"https://api.github.com/users/icdishb/following{/other_user}","gists_url":"https://api.github.com/users/icdishb/gists{/gist_id}","starred_url":"https://api.github.com/users/icdishb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icdishb/subscriptions","organizations_url":"https://api.github.com/users/icdishb/orgs","repos_url":"https://api.github.com/users/icdishb/repos","events_url":"https://api.github.com/users/icdishb/events{/privacy}","received_events_url":"https://api.github.com/users/icdishb/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T10:42:13Z","updated_at":"2016-05-26T10:42:13Z","body":"Hi, this is a bug. The error is because the number of process is larger than the number of fingerprints you want to predict. "}}
{"actor":{"display_login":"icdishb"}}