{"action":"created","issue":{"url":"https://api.github.com/repos/XanaduAI/pennylane/issues/128","repository_url":"https://api.github.com/repos/XanaduAI/pennylane","labels_url":"https://api.github.com/repos/XanaduAI/pennylane/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/XanaduAI/pennylane/issues/128/comments","events_url":"https://api.github.com/repos/XanaduAI/pennylane/issues/128/events","html_url":"https://github.com/XanaduAI/pennylane/issues/128","id":380840956,"node_id":"MDU6SXNzdWUzODA4NDA5NTY=","number":128,"title":"Example Variational Classifier no batching when learning parity","user":{"login":"chMoussa","id":18176484,"node_id":"MDQ6VXNlcjE4MTc2NDg0","avatar_url":"https://avatars0.githubusercontent.com/u/18176484?v=4","gravatar_id":"","url":"https://api.github.com/users/chMoussa","html_url":"https://github.com/chMoussa","followers_url":"https://api.github.com/users/chMoussa/followers","following_url":"https://api.github.com/users/chMoussa/following{/other_user}","gists_url":"https://api.github.com/users/chMoussa/gists{/gist_id}","starred_url":"https://api.github.com/users/chMoussa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chMoussa/subscriptions","organizations_url":"https://api.github.com/users/chMoussa/orgs","repos_url":"https://api.github.com/users/chMoussa/repos","events_url":"https://api.github.com/users/chMoussa/events{/privacy}","received_events_url":"https://api.github.com/users/chMoussa/received_events","type":"User","site_admin":false},"labels":[{"id":944740776,"node_id":"MDU6TGFiZWw5NDQ3NDA3NzY=","url":"https://api.github.com/repos/XanaduAI/pennylane/labels/documentation","name":"documentation","color":"27a31b","default":false}],"state":"open","locked":false,"assignee":{"login":"mariaschuld","id":23052011,"node_id":"MDQ6VXNlcjIzMDUyMDEx","avatar_url":"https://avatars1.githubusercontent.com/u/23052011?v=4","gravatar_id":"","url":"https://api.github.com/users/mariaschuld","html_url":"https://github.com/mariaschuld","followers_url":"https://api.github.com/users/mariaschuld/followers","following_url":"https://api.github.com/users/mariaschuld/following{/other_user}","gists_url":"https://api.github.com/users/mariaschuld/gists{/gist_id}","starred_url":"https://api.github.com/users/mariaschuld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariaschuld/subscriptions","organizations_url":"https://api.github.com/users/mariaschuld/orgs","repos_url":"https://api.github.com/users/mariaschuld/repos","events_url":"https://api.github.com/users/mariaschuld/events{/privacy}","received_events_url":"https://api.github.com/users/mariaschuld/received_events","type":"User","site_admin":false},"assignees":[{"login":"mariaschuld","id":23052011,"node_id":"MDQ6VXNlcjIzMDUyMDEx","avatar_url":"https://avatars1.githubusercontent.com/u/23052011?v=4","gravatar_id":"","url":"https://api.github.com/users/mariaschuld","html_url":"https://github.com/mariaschuld","followers_url":"https://api.github.com/users/mariaschuld/followers","following_url":"https://api.github.com/users/mariaschuld/following{/other_user}","gists_url":"https://api.github.com/users/mariaschuld/gists{/gist_id}","starred_url":"https://api.github.com/users/mariaschuld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariaschuld/subscriptions","organizations_url":"https://api.github.com/users/mariaschuld/orgs","repos_url":"https://api.github.com/users/mariaschuld/repos","events_url":"https://api.github.com/users/mariaschuld/events{/privacy}","received_events_url":"https://api.github.com/users/mariaschuld/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-14T18:59:35Z","updated_at":"2018-11-15T05:18:58Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nJust a quick fix. I noticed in the code example of the variational classifier that you do not batch for the learning of the parity function: \r\n\r\n`for it in range(25):\r\n\r\n    # Update the weights by one optimizer step\r\n    batch_index = np.random.randint(0, len(X), (batch_size, ))\r\n    X_batch = X[batch_index]\r\n    Y_batch = Y[batch_index]\r\n    var = opt.step(lambda v: cost(v, X, Y), var)\r\n`\r\n\r\nJust replace the last line by :\r\n`var = opt.step(lambda v: cost(v, X_batch, Y_batch), var)`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/XanaduAI/pennylane/issues/comments/438921093","html_url":"https://github.com/XanaduAI/pennylane/issues/128#issuecomment-438921093","issue_url":"https://api.github.com/repos/XanaduAI/pennylane/issues/128","id":438921093,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODkyMTA5Mw==","user":{"login":"mariaschuld","id":23052011,"node_id":"MDQ6VXNlcjIzMDUyMDEx","avatar_url":"https://avatars1.githubusercontent.com/u/23052011?v=4","gravatar_id":"","url":"https://api.github.com/users/mariaschuld","html_url":"https://github.com/mariaschuld","followers_url":"https://api.github.com/users/mariaschuld/followers","following_url":"https://api.github.com/users/mariaschuld/following{/other_user}","gists_url":"https://api.github.com/users/mariaschuld/gists{/gist_id}","starred_url":"https://api.github.com/users/mariaschuld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariaschuld/subscriptions","organizations_url":"https://api.github.com/users/mariaschuld/orgs","repos_url":"https://api.github.com/users/mariaschuld/repos","events_url":"https://api.github.com/users/mariaschuld/events{/privacy}","received_events_url":"https://api.github.com/users/mariaschuld/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T05:18:58Z","updated_at":"2018-11-15T05:18:58Z","author_association":"CONTRIBUTOR","body":"Thanks @chMoussa. Will push the fix asap."}}
{"actor":{"display_login":"mariaschuld"}}