{"action":"created","issue":{"url":"https://api.github.com/repos/aimacode/aima-python/issues/137","repository_url":"https://api.github.com/repos/aimacode/aima-python","labels_url":"https://api.github.com/repos/aimacode/aima-python/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/aimacode/aima-python/issues/137/comments","events_url":"https://api.github.com/repos/aimacode/aima-python/issues/137/events","html_url":"https://github.com/aimacode/aima-python/pull/137","id":140604873,"number":137,"title":"Added the perceptron learner algorithm","user":{"login":"AbdulazizAlaa","id":6316434,"avatar_url":"https://avatars.githubusercontent.com/u/6316434?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdulazizAlaa","html_url":"https://github.com/AbdulazizAlaa","followers_url":"https://api.github.com/users/AbdulazizAlaa/followers","following_url":"https://api.github.com/users/AbdulazizAlaa/following{/other_user}","gists_url":"https://api.github.com/users/AbdulazizAlaa/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdulazizAlaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdulazizAlaa/subscriptions","organizations_url":"https://api.github.com/users/AbdulazizAlaa/orgs","repos_url":"https://api.github.com/users/AbdulazizAlaa/repos","events_url":"https://api.github.com/users/AbdulazizAlaa/events{/privacy}","received_events_url":"https://api.github.com/users/AbdulazizAlaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T08:18:05Z","updated_at":"2016-03-14T10:08:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aimacode/aima-python/pulls/137","html_url":"https://github.com/aimacode/aima-python/pull/137","diff_url":"https://github.com/aimacode/aima-python/pull/137.diff","patch_url":"https://github.com/aimacode/aima-python/pull/137.patch"},"body":"Added the code for the perceptron learner. It contains several functions with their comments. \r\n\r\nthe most important are: gradientDescient an implementation of the gradient descent that loops for a specific number of iterations and every time computes the cost and gradient, then it updates the weights using the gradient. cost a function that computes the cost and gradient using mathematical formal. generateTargetList converts the target list into a list of 1 and -1 to denote the existence of some class.\r\n\r\ni hope everything is clear. "},"comment":{"url":"https://api.github.com/repos/aimacode/aima-python/issues/comments/196236530","html_url":"https://github.com/aimacode/aima-python/pull/137#issuecomment-196236530","issue_url":"https://api.github.com/repos/aimacode/aima-python/issues/137","id":196236530,"user":{"login":"Schrodinger1926","id":9752908,"avatar_url":"https://avatars.githubusercontent.com/u/9752908?v=3","gravatar_id":"","url":"https://api.github.com/users/Schrodinger1926","html_url":"https://github.com/Schrodinger1926","followers_url":"https://api.github.com/users/Schrodinger1926/followers","following_url":"https://api.github.com/users/Schrodinger1926/following{/other_user}","gists_url":"https://api.github.com/users/Schrodinger1926/gists{/gist_id}","starred_url":"https://api.github.com/users/Schrodinger1926/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schrodinger1926/subscriptions","organizations_url":"https://api.github.com/users/Schrodinger1926/orgs","repos_url":"https://api.github.com/users/Schrodinger1926/repos","events_url":"https://api.github.com/users/Schrodinger1926/events{/privacy}","received_events_url":"https://api.github.com/users/Schrodinger1926/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T10:08:15Z","updated_at":"2016-03-14T10:08:15Z","body":"Hey @AbdulazizAlaa , Perceptron has already been implemented. You might not have pulled latest commits from upstream master. I see you wrote an independent patch here, we need to move according to aima as well keep neural net learner and perceptron learner in sync by using same underlying backpropagation algorithm."}}