{"action":"created","issue":{"url":"https://api.github.com/repos/geffy/tffm/issues/41","repository_url":"https://api.github.com/repos/geffy/tffm","labels_url":"https://api.github.com/repos/geffy/tffm/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/geffy/tffm/issues/41/comments","events_url":"https://api.github.com/repos/geffy/tffm/issues/41/events","html_url":"https://github.com/geffy/tffm/issues/41","id":313868299,"number":41,"title":"Running tffm on a single core","user":{"login":"martincousi","id":10871394,"avatar_url":"https://avatars1.githubusercontent.com/u/10871394?v=4","gravatar_id":"","url":"https://api.github.com/users/martincousi","html_url":"https://github.com/martincousi","followers_url":"https://api.github.com/users/martincousi/followers","following_url":"https://api.github.com/users/martincousi/following{/other_user}","gists_url":"https://api.github.com/users/martincousi/gists{/gist_id}","starred_url":"https://api.github.com/users/martincousi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martincousi/subscriptions","organizations_url":"https://api.github.com/users/martincousi/orgs","repos_url":"https://api.github.com/users/martincousi/repos","events_url":"https://api.github.com/users/martincousi/events{/privacy}","received_events_url":"https://api.github.com/users/martincousi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-12T20:03:50Z","updated_at":"2018-04-25T17:59:48Z","closed_at":null,"author_association":"NONE","body":"I need to run multiple `TFFMRegressor` objects in `joblib` `Parallel`. To do so, I passed the following parameter:\r\n\r\n```\r\nsession_config=tf.ConfigProto(intra_op_parallelism_threads=1,\r\n                                                    inter_op_parallelism_threads=1,\r\n                                                    allow_soft_placement=True,\r\n                                                    device_count = {'CPU': 1, 'GPU': 0})\r\n```\r\n\r\nHowever, my cores do not seem to run whenever I use `n_jobs=2` or higher in `Parallel`; my python notebook cell just hangs, never completes and my processors are not used. At `n_jobs=1`, everything is running fine. What am I missing? Would I better use `polylearn` instead for this kind of task?"},"comment":{"url":"https://api.github.com/repos/geffy/tffm/issues/comments/384378678","html_url":"https://github.com/geffy/tffm/issues/41#issuecomment-384378678","issue_url":"https://api.github.com/repos/geffy/tffm/issues/41","id":384378678,"user":{"login":"martincousi","id":10871394,"avatar_url":"https://avatars1.githubusercontent.com/u/10871394?v=4","gravatar_id":"","url":"https://api.github.com/users/martincousi","html_url":"https://github.com/martincousi","followers_url":"https://api.github.com/users/martincousi/followers","following_url":"https://api.github.com/users/martincousi/following{/other_user}","gists_url":"https://api.github.com/users/martincousi/gists{/gist_id}","starred_url":"https://api.github.com/users/martincousi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martincousi/subscriptions","organizations_url":"https://api.github.com/users/martincousi/orgs","repos_url":"https://api.github.com/users/martincousi/repos","events_url":"https://api.github.com/users/martincousi/events{/privacy}","received_events_url":"https://api.github.com/users/martincousi/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T17:59:48Z","updated_at":"2018-04-25T17:59:48Z","author_association":"NONE","body":"Ok it appears that passing this `session_config` parameter does not do anything, at least, on my machine. So, it is not needed\r\n\r\nI was able to use `Parallel` in the end by:\r\n- passing a `numpy.float32` value for `init_std` (otherwise I sometime got an error)\r\n- standardizing the values in `X` to $|x_{ij}| <= 1$ (otherwise I got an error when using a high `order`)\r\n\r\nIt appears that passing a `numpy.float32` value is not necessary the parameter `reg`.\r\n\r\nNow, I know that my question is highly problem dependent but what are good range of values when doing a randomized search over the different parameters? My problem contains about 400 observations and I see that there are several parameters that could be tuned such as `order`, `rank`, `optimizer` (and its parameters), `reg`, etc. It even appears that `batch_size` and `n_epochs` are somewhat linked."}}
{"actor":{"display_login":"martincousi"}}