{"action":"created","comment":{"url":"https://api.github.com/repos/fchollet/keras/pulls/comments/92505489","pull_request_review_id":13021882,"id":92505489,"diff_hunk":"@@ -288,27 +492,102 @@ def ones(shape, dtype=_FLOATX, name=None):\n \n \n def eye(size, dtype=_FLOATX, name=None):\n-    '''Instantiate an identity matrix.\n+    '''Instantiate an identity matrix and returns it.\n+\n+    # Arguments\n+        size: Integer, number of rows/columns.\n+        dtype: String, data type of returned Keras variable.\n+        name: String, name of returned Keras variable.\n+\n+    # Returns\n+        A Keras variable, an identity matrix.\n+\n+    # Example\n+    ```python\n+        >>> from keras import backend as K\n+        >>> K.eval(var)\n+        array([[ 1.,  0.,  0.],\n+               [ 0.,  1.,  0.],\n+               [ 0.,  0.,  1.]], dtype=float32)\n+    ```\n+\n     '''\n     return variable(np.eye(size), dtype, name)\n \n \n def zeros_like(x, name=None):\n-    '''Instantiates an all-zeros tensor\n-    of the same shape as another tensor.\n+    '''Instantiates an all-zeros Keras variable\n+    of the same shape as another Keras variable and returns it.","path":"keras/backend/tensorflow_backend.py","position":362,"original_position":362,"commit_id":"56c33a98e9ff30775a3fc9e2be29647b5387add9","original_commit_id":"56c33a98e9ff30775a3fc9e2be29647b5387add9","user":{"login":"fchollet","id":710255,"avatar_url":"https://avatars.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"body":"or tensor","created_at":"2016-12-14T22:33:28Z","updated_at":"2016-12-14T22:36:01Z","html_url":"https://github.com/fchollet/keras/pull/4677#discussion_r92505489","pull_request_url":"https://api.github.com/repos/fchollet/keras/pulls/4677","_links":{"self":{"href":"https://api.github.com/repos/fchollet/keras/pulls/comments/92505489"},"html":{"href":"https://github.com/fchollet/keras/pull/4677#discussion_r92505489"},"pull_request":{"href":"https://api.github.com/repos/fchollet/keras/pulls/4677"}}},"pull_request":{"url":"https://api.github.com/repos/fchollet/keras/pulls/4677","id":97449971,"html_url":"https://github.com/fchollet/keras/pull/4677","diff_url":"https://github.com/fchollet/keras/pull/4677.diff","patch_url":"https://github.com/fchollet/keras/pull/4677.patch","issue_url":"https://api.github.com/repos/fchollet/keras/issues/4677","number":4677,"state":"open","locked":false,"title":"Documentation - tensorflow_backend","user":{"login":"keunwoochoi","id":16153797,"avatar_url":"https://avatars.githubusercontent.com/u/16153797?v=3","gravatar_id":"","url":"https://api.github.com/users/keunwoochoi","html_url":"https://github.com/keunwoochoi","followers_url":"https://api.github.com/users/keunwoochoi/followers","following_url":"https://api.github.com/users/keunwoochoi/following{/other_user}","gists_url":"https://api.github.com/users/keunwoochoi/gists{/gist_id}","starred_url":"https://api.github.com/users/keunwoochoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keunwoochoi/subscriptions","organizations_url":"https://api.github.com/users/keunwoochoi/orgs","repos_url":"https://api.github.com/users/keunwoochoi/repos","events_url":"https://api.github.com/users/keunwoochoi/events{/privacy}","received_events_url":"https://api.github.com/users/keunwoochoi/received_events","type":"User","site_admin":false},"body":"* about the first 1/3. \r\n* Style: following common.py\r\n* All examples are tested with tf backend.\r\n* Used 'Keras tensor' and 'Keras variable' and tried to make their differences clear, mainly relying on trial-and-error, so there could be errors. \r\n* 77ae504 contains all changes.","created_at":"2016-12-11T06:20:45Z","updated_at":"2016-12-14T22:36:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70957afed589fb8df4df122eafb17c4dd0c07d2a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fchollet/keras/pulls/4677/commits","review_comments_url":"https://api.github.com/repos/fchollet/keras/pulls/4677/comments","review_comment_url":"https://api.github.com/repos/fchollet/keras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/4677/comments","statuses_url":"https://api.github.com/repos/fchollet/keras/statuses/56c33a98e9ff30775a3fc9e2be29647b5387add9","head":{"label":"keunwoochoi:doc_easy","ref":"doc_easy","sha":"56c33a98e9ff30775a3fc9e2be29647b5387add9","user":{"login":"keunwoochoi","id":16153797,"avatar_url":"https://avatars.githubusercontent.com/u/16153797?v=3","gravatar_id":"","url":"https://api.github.com/users/keunwoochoi","html_url":"https://github.com/keunwoochoi","followers_url":"https://api.github.com/users/keunwoochoi/followers","following_url":"https://api.github.com/users/keunwoochoi/following{/other_user}","gists_url":"https://api.github.com/users/keunwoochoi/gists{/gist_id}","starred_url":"https://api.github.com/users/keunwoochoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keunwoochoi/subscriptions","organizations_url":"https://api.github.com/users/keunwoochoi/orgs","repos_url":"https://api.github.com/users/keunwoochoi/repos","events_url":"https://api.github.com/users/keunwoochoi/events{/privacy}","received_events_url":"https://api.github.com/users/keunwoochoi/received_events","type":"User","site_admin":false},"repo":{"id":47941318,"name":"keras","full_name":"keunwoochoi/keras","owner":{"login":"keunwoochoi","id":16153797,"avatar_url":"https://avatars.githubusercontent.com/u/16153797?v=3","gravatar_id":"","url":"https://api.github.com/users/keunwoochoi","html_url":"https://github.com/keunwoochoi","followers_url":"https://api.github.com/users/keunwoochoi/followers","following_url":"https://api.github.com/users/keunwoochoi/following{/other_user}","gists_url":"https://api.github.com/users/keunwoochoi/gists{/gist_id}","starred_url":"https://api.github.com/users/keunwoochoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keunwoochoi/subscriptions","organizations_url":"https://api.github.com/users/keunwoochoi/orgs","repos_url":"https://api.github.com/users/keunwoochoi/repos","events_url":"https://api.github.com/users/keunwoochoi/events{/privacy}","received_events_url":"https://api.github.com/users/keunwoochoi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keunwoochoi/keras","description":"Deep Learning library for Python. Convnets, recurrent neural networks, and more. Runs on Theano and TensorFlow.","fork":true,"url":"https://api.github.com/repos/keunwoochoi/keras","forks_url":"https://api.github.com/repos/keunwoochoi/keras/forks","keys_url":"https://api.github.com/repos/keunwoochoi/keras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keunwoochoi/keras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keunwoochoi/keras/teams","hooks_url":"https://api.github.com/repos/keunwoochoi/keras/hooks","issue_events_url":"https://api.github.com/repos/keunwoochoi/keras/issues/events{/number}","events_url":"https://api.github.com/repos/keunwoochoi/keras/events","assignees_url":"https://api.github.com/repos/keunwoochoi/keras/assignees{/user}","branches_url":"https://api.github.com/repos/keunwoochoi/keras/branches{/branch}","tags_url":"https://api.github.com/repos/keunwoochoi/keras/tags","blobs_url":"https://api.github.com/repos/keunwoochoi/keras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keunwoochoi/keras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keunwoochoi/keras/git/refs{/sha}","trees_url":"https://api.github.com/repos/keunwoochoi/keras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keunwoochoi/keras/statuses/{sha}","languages_url":"https://api.github.com/repos/keunwoochoi/keras/languages","stargazers_url":"https://api.github.com/repos/keunwoochoi/keras/stargazers","contributors_url":"https://api.github.com/repos/keunwoochoi/keras/contributors","subscribers_url":"https://api.github.com/repos/keunwoochoi/keras/subscribers","subscription_url":"https://api.github.com/repos/keunwoochoi/keras/subscription","commits_url":"https://api.github.com/repos/keunwoochoi/keras/commits{/sha}","git_commits_url":"https://api.github.com/repos/keunwoochoi/keras/git/commits{/sha}","comments_url":"https://api.github.com/repos/keunwoochoi/keras/comments{/number}","issue_comment_url":"https://api.github.com/repos/keunwoochoi/keras/issues/comments{/number}","contents_url":"https://api.github.com/repos/keunwoochoi/keras/contents/{+path}","compare_url":"https://api.github.com/repos/keunwoochoi/keras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keunwoochoi/keras/merges","archive_url":"https://api.github.com/repos/keunwoochoi/keras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keunwoochoi/keras/downloads","issues_url":"https://api.github.com/repos/keunwoochoi/keras/issues{/number}","pulls_url":"https://api.github.com/repos/keunwoochoi/keras/pulls{/number}","milestones_url":"https://api.github.com/repos/keunwoochoi/keras/milestones{/number}","notifications_url":"https://api.github.com/repos/keunwoochoi/keras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keunwoochoi/keras/labels{/name}","releases_url":"https://api.github.com/repos/keunwoochoi/keras/releases{/id}","deployments_url":"https://api.github.com/repos/keunwoochoi/keras/deployments","created_at":"2015-12-13T23:36:53Z","updated_at":"2016-08-18T05:17:18Z","pushed_at":"2016-12-12T20:03:18Z","git_url":"git://github.com/keunwoochoi/keras.git","ssh_url":"git@github.com:keunwoochoi/keras.git","clone_url":"https://github.com/keunwoochoi/keras.git","svn_url":"https://github.com/keunwoochoi/keras","homepage":"http://keras.io/","size":4861,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fchollet:master","ref":"master","sha":"d517b5557681d1d0097c0a2d91e181723799c994","user":{"login":"fchollet","id":710255,"avatar_url":"https://avatars.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"repo":{"id":33015583,"name":"keras","full_name":"fchollet/keras","owner":{"login":"fchollet","id":710255,"avatar_url":"https://avatars.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fchollet/keras","description":"Deep Learning library for Python. Convnets, recurrent neural networks, and more. Runs on Theano or TensorFlow.","fork":false,"url":"https://api.github.com/repos/fchollet/keras","forks_url":"https://api.github.com/repos/fchollet/keras/forks","keys_url":"https://api.github.com/repos/fchollet/keras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fchollet/keras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fchollet/keras/teams","hooks_url":"https://api.github.com/repos/fchollet/keras/hooks","issue_events_url":"https://api.github.com/repos/fchollet/keras/issues/events{/number}","events_url":"https://api.github.com/repos/fchollet/keras/events","assignees_url":"https://api.github.com/repos/fchollet/keras/assignees{/user}","branches_url":"https://api.github.com/repos/fchollet/keras/branches{/branch}","tags_url":"https://api.github.com/repos/fchollet/keras/tags","blobs_url":"https://api.github.com/repos/fchollet/keras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fchollet/keras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fchollet/keras/git/refs{/sha}","trees_url":"https://api.github.com/repos/fchollet/keras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fchollet/keras/statuses/{sha}","languages_url":"https://api.github.com/repos/fchollet/keras/languages","stargazers_url":"https://api.github.com/repos/fchollet/keras/stargazers","contributors_url":"https://api.github.com/repos/fchollet/keras/contributors","subscribers_url":"https://api.github.com/repos/fchollet/keras/subscribers","subscription_url":"https://api.github.com/repos/fchollet/keras/subscription","commits_url":"https://api.github.com/repos/fchollet/keras/commits{/sha}","git_commits_url":"https://api.github.com/repos/fchollet/keras/git/commits{/sha}","comments_url":"https://api.github.com/repos/fchollet/keras/comments{/number}","issue_comment_url":"https://api.github.com/repos/fchollet/keras/issues/comments{/number}","contents_url":"https://api.github.com/repos/fchollet/keras/contents/{+path}","compare_url":"https://api.github.com/repos/fchollet/keras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fchollet/keras/merges","archive_url":"https://api.github.com/repos/fchollet/keras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fchollet/keras/downloads","issues_url":"https://api.github.com/repos/fchollet/keras/issues{/number}","pulls_url":"https://api.github.com/repos/fchollet/keras/pulls{/number}","milestones_url":"https://api.github.com/repos/fchollet/keras/milestones{/number}","notifications_url":"https://api.github.com/repos/fchollet/keras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fchollet/keras/labels{/name}","releases_url":"https://api.github.com/repos/fchollet/keras/releases{/id}","deployments_url":"https://api.github.com/repos/fchollet/keras/deployments","created_at":"2015-03-28T00:35:42Z","updated_at":"2016-12-14T20:12:35Z","pushed_at":"2016-12-14T22:25:22Z","git_url":"git://github.com/fchollet/keras.git","ssh_url":"git@github.com:fchollet/keras.git","clone_url":"https://github.com/fchollet/keras.git","svn_url":"https://github.com/fchollet/keras","homepage":"http://keras.io/","size":4946,"stargazers_count":10266,"watchers_count":10266,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3407,"mirror_url":null,"open_issues_count":1781,"forks":3407,"open_issues":1781,"watchers":10266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fchollet/keras/pulls/4677"},"html":{"href":"https://github.com/fchollet/keras/pull/4677"},"issue":{"href":"https://api.github.com/repos/fchollet/keras/issues/4677"},"comments":{"href":"https://api.github.com/repos/fchollet/keras/issues/4677/comments"},"review_comments":{"href":"https://api.github.com/repos/fchollet/keras/pulls/4677/comments"},"review_comment":{"href":"https://api.github.com/repos/fchollet/keras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fchollet/keras/pulls/4677/commits"},"statuses":{"href":"https://api.github.com/repos/fchollet/keras/statuses/56c33a98e9ff30775a3fc9e2be29647b5387add9"}}}}
{"actor":{"display_login":"fchollet"}}