{"action":"created","issue":{"url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial/issues/1","repository_url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial","labels_url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial/issues/1/comments","events_url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial/issues/1/events","html_url":"https://github.com/freddyalfonsoboulton/crf_tutorial/issues/1","id":327125918,"number":1,"title":"not converging","user":{"login":"Shaunlipy","id":2243270,"avatar_url":"https://avatars1.githubusercontent.com/u/2243270?v=4","gravatar_id":"","url":"https://api.github.com/users/Shaunlipy","html_url":"https://github.com/Shaunlipy","followers_url":"https://api.github.com/users/Shaunlipy/followers","following_url":"https://api.github.com/users/Shaunlipy/following{/other_user}","gists_url":"https://api.github.com/users/Shaunlipy/gists{/gist_id}","starred_url":"https://api.github.com/users/Shaunlipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shaunlipy/subscriptions","organizations_url":"https://api.github.com/users/Shaunlipy/orgs","repos_url":"https://api.github.com/users/Shaunlipy/repos","events_url":"https://api.github.com/users/Shaunlipy/events{/privacy}","received_events_url":"https://api.github.com/users/Shaunlipy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-28T22:18:13Z","updated_at":"2018-05-28T23:34:23Z","closed_at":null,"author_association":"NONE","body":"Hi, I followed your code, only changed all torch.cat to torch.stack (because torch.cat throws error: \r\n'''\r\nprev_alpha = torch.cat(alpha_t).view(1,-1)\r\nRuntimeError: zero-dimensional tensor (at position 0) cannot be concatenated\r\n'''). \r\n\r\nAnd one more: in your function \"simulate_data\" should you add:\r\n\r\nprev_state = next_state\r\n\r\ninside your for loop? (I added)\r\n\r\nmy results:\r\n...\r\nEpoch 0: Batch 97/100 loss is 5.7809\r\nEpoch 0: Batch 98/100 loss is 6.7747\r\nEpoch 0: Batch 99/100 loss is 4.9654\r\n[4 0 0 0 4 5 3 4 0 4 2 2 5 3 1]\r\n[0 0 0 1 0 0 0 0 0 0 1 0 0 0 0]\r\n[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]\r\n[[-0.33391526 -0.6212296  -2.148588  ]\r\n [-0.8201128  -0.5577968  -0.9616032 ]]\r\n\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial/issues/comments/392617102","html_url":"https://github.com/freddyalfonsoboulton/crf_tutorial/issues/1#issuecomment-392617102","issue_url":"https://api.github.com/repos/freddyalfonsoboulton/crf_tutorial/issues/1","id":392617102,"user":{"login":"freddyalfonsoboulton","id":8455294,"avatar_url":"https://avatars2.githubusercontent.com/u/8455294?v=4","gravatar_id":"","url":"https://api.github.com/users/freddyalfonsoboulton","html_url":"https://github.com/freddyalfonsoboulton","followers_url":"https://api.github.com/users/freddyalfonsoboulton/followers","following_url":"https://api.github.com/users/freddyalfonsoboulton/following{/other_user}","gists_url":"https://api.github.com/users/freddyalfonsoboulton/gists{/gist_id}","starred_url":"https://api.github.com/users/freddyalfonsoboulton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freddyalfonsoboulton/subscriptions","organizations_url":"https://api.github.com/users/freddyalfonsoboulton/orgs","repos_url":"https://api.github.com/users/freddyalfonsoboulton/repos","events_url":"https://api.github.com/users/freddyalfonsoboulton/events{/privacy}","received_events_url":"https://api.github.com/users/freddyalfonsoboulton/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T23:34:23Z","updated_at":"2018-05-28T23:34:23Z","author_association":"OWNER","body":"Also, \r\n\r\nI'm not really sure why torch.cat is throwing that error. I used torch 0.3.0 for this post so maybe torch 0.4 is causing the issue?"}}
{"actor":{"display_login":"freddyalfonsoboulton"}}