{"action":"created","comment":{"url":"https://api.github.com/repos/biolab/orange3/pulls/comments/55816506","id":55816506,"diff_hunk":"@@ -171,6 +173,27 @@ def commit(self):\n         self.send(\"Coefficients\", coef_table)\n \n     def send_report(self):\n+        self.report_items(((\"Name\", self.learner_name),))\n+\n+        items = OrderedDict()\n+\n+        if self.reg_type == OWLinearRegression.OLS:\n+            items[\"Regularization\"] = \"No Regularization\"\n+        elif self.reg_type == OWLinearRegression.Ridge:\n+            items[\"Regularization\"] = \"Ridge Regression (L2)\"\n+            items[\"Regularisation Strength\"] = \"{}\".format(self.alphas[self.alpha_index])\n+        elif self.reg_type == OWLinearRegression.Lasso:\n+            items[\"Regularization\"] = \"Lasso Regression (L1)\"\n+            items[\"Regularisation Strength\"] = \"{}\".format(self.alphas[self.alpha_index])\n+        elif self.reg_type == OWLinearRegression.Elastic:\n+            items[\"Regularization\"] = \"Elastic Net Regression\"\n+            items[\"Elastic Net Mixing (L1)\"] = \"{}\".format(self.l1_ratio)\n+            items[\"Elastic Net Mixing (L2)\"] = \"{}\".format(1 - self.l1_ratio)\n+\n+        self.report_items(\"Model parameters\", items)","path":"Orange/widgets/regression/owlinearregression.py","position":27,"original_position":27,"commit_id":"d85b56e0a5f2d091304443343b9aa855656ac6a4","original_commit_id":"d85b56e0a5f2d091304443343b9aa855656ac6a4","user":{"login":"janezd","id":2387315,"avatar_url":"https://avatars.githubusercontent.com/u/2387315?v=3","gravatar_id":"","url":"https://api.github.com/users/janezd","html_url":"https://github.com/janezd","followers_url":"https://api.github.com/users/janezd/followers","following_url":"https://api.github.com/users/janezd/following{/other_user}","gists_url":"https://api.github.com/users/janezd/gists{/gist_id}","starred_url":"https://api.github.com/users/janezd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janezd/subscriptions","organizations_url":"https://api.github.com/users/janezd/orgs","repos_url":"https://api.github.com/users/janezd/repos","events_url":"https://api.github.com/users/janezd/events{/privacy}","received_events_url":"https://api.github.com/users/janezd/received_events","type":"User","site_admin":false},"body":"Section contains just 1-3 lines, so it does not need a separate title.","created_at":"2016-03-11T11:00:54Z","updated_at":"2016-03-11T11:00:54Z","html_url":"https://github.com/biolab/orange3/pull/1092#discussion_r55816506","pull_request_url":"https://api.github.com/repos/biolab/orange3/pulls/1092","_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/55816506"},"html":{"href":"https://github.com/biolab/orange3/pull/1092#discussion_r55816506"},"pull_request":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1092"}}},"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/1092","id":62290712,"html_url":"https://github.com/biolab/orange3/pull/1092","diff_url":"https://github.com/biolab/orange3/pull/1092.diff","patch_url":"https://github.com/biolab/orange3/pull/1092.patch","issue_url":"https://api.github.com/repos/biolab/orange3/issues/1092","number":1092,"state":"open","locked":false,"title":"Report Creation for Linear Regression","user":{"login":"kwikadi","id":4578690,"avatar_url":"https://avatars.githubusercontent.com/u/4578690?v=3","gravatar_id":"","url":"https://api.github.com/users/kwikadi","html_url":"https://github.com/kwikadi","followers_url":"https://api.github.com/users/kwikadi/followers","following_url":"https://api.github.com/users/kwikadi/following{/other_user}","gists_url":"https://api.github.com/users/kwikadi/gists{/gist_id}","starred_url":"https://api.github.com/users/kwikadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwikadi/subscriptions","organizations_url":"https://api.github.com/users/kwikadi/orgs","repos_url":"https://api.github.com/users/kwikadi/repos","events_url":"https://api.github.com/users/kwikadi/events{/privacy}","received_events_url":"https://api.github.com/users/kwikadi/received_events","type":"User","site_admin":false},"body":"Attempts to fix Issue #1079 ","created_at":"2016-03-09T20:28:08Z","updated_at":"2016-03-11T11:00:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2edef469ffcbaee117ab816380cade052b9a5108","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biolab/orange3/pulls/1092/commits","review_comments_url":"https://api.github.com/repos/biolab/orange3/pulls/1092/comments","review_comment_url":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/1092/comments","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/d85b56e0a5f2d091304443343b9aa855656ac6a4","head":{"label":"kwikadi:reportcreate","ref":"reportcreate","sha":"d85b56e0a5f2d091304443343b9aa855656ac6a4","user":{"login":"kwikadi","id":4578690,"avatar_url":"https://avatars.githubusercontent.com/u/4578690?v=3","gravatar_id":"","url":"https://api.github.com/users/kwikadi","html_url":"https://github.com/kwikadi","followers_url":"https://api.github.com/users/kwikadi/followers","following_url":"https://api.github.com/users/kwikadi/following{/other_user}","gists_url":"https://api.github.com/users/kwikadi/gists{/gist_id}","starred_url":"https://api.github.com/users/kwikadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwikadi/subscriptions","organizations_url":"https://api.github.com/users/kwikadi/orgs","repos_url":"https://api.github.com/users/kwikadi/repos","events_url":"https://api.github.com/users/kwikadi/events{/privacy}","received_events_url":"https://api.github.com/users/kwikadi/received_events","type":"User","site_admin":false},"repo":{"id":53067669,"name":"orange3","full_name":"kwikadi/orange3","owner":{"login":"kwikadi","id":4578690,"avatar_url":"https://avatars.githubusercontent.com/u/4578690?v=3","gravatar_id":"","url":"https://api.github.com/users/kwikadi","html_url":"https://github.com/kwikadi","followers_url":"https://api.github.com/users/kwikadi/followers","following_url":"https://api.github.com/users/kwikadi/following{/other_user}","gists_url":"https://api.github.com/users/kwikadi/gists{/gist_id}","starred_url":"https://api.github.com/users/kwikadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwikadi/subscriptions","organizations_url":"https://api.github.com/users/kwikadi/orgs","repos_url":"https://api.github.com/users/kwikadi/repos","events_url":"https://api.github.com/users/kwikadi/events{/privacy}","received_events_url":"https://api.github.com/users/kwikadi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwikadi/orange3","description":"Orange 3 data mining suite: http://orange.biolab.si ","fork":true,"url":"https://api.github.com/repos/kwikadi/orange3","forks_url":"https://api.github.com/repos/kwikadi/orange3/forks","keys_url":"https://api.github.com/repos/kwikadi/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwikadi/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwikadi/orange3/teams","hooks_url":"https://api.github.com/repos/kwikadi/orange3/hooks","issue_events_url":"https://api.github.com/repos/kwikadi/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/kwikadi/orange3/events","assignees_url":"https://api.github.com/repos/kwikadi/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/kwikadi/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/kwikadi/orange3/tags","blobs_url":"https://api.github.com/repos/kwikadi/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwikadi/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwikadi/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwikadi/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwikadi/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/kwikadi/orange3/languages","stargazers_url":"https://api.github.com/repos/kwikadi/orange3/stargazers","contributors_url":"https://api.github.com/repos/kwikadi/orange3/contributors","subscribers_url":"https://api.github.com/repos/kwikadi/orange3/subscribers","subscription_url":"https://api.github.com/repos/kwikadi/orange3/subscription","commits_url":"https://api.github.com/repos/kwikadi/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwikadi/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwikadi/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwikadi/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwikadi/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/kwikadi/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwikadi/orange3/merges","archive_url":"https://api.github.com/repos/kwikadi/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwikadi/orange3/downloads","issues_url":"https://api.github.com/repos/kwikadi/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/kwikadi/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/kwikadi/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/kwikadi/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwikadi/orange3/labels{/name}","releases_url":"https://api.github.com/repos/kwikadi/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/kwikadi/orange3/deployments","created_at":"2016-03-03T17:00:51Z","updated_at":"2016-03-03T17:00:54Z","pushed_at":"2016-03-09T20:27:05Z","git_url":"git://github.com/kwikadi/orange3.git","ssh_url":"git@github.com:kwikadi/orange3.git","clone_url":"https://github.com/kwikadi/orange3.git","svn_url":"https://github.com/kwikadi/orange3","homepage":"","size":36254,"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":"biolab:master","ref":"master","sha":"45b9249fb737dca9a9b346b61e3432782dad6ba0","user":{"login":"biolab","id":555189,"avatar_url":"https://avatars.githubusercontent.com/u/555189?v=3","gravatar_id":"","url":"https://api.github.com/users/biolab","html_url":"https://github.com/biolab","followers_url":"https://api.github.com/users/biolab/followers","following_url":"https://api.github.com/users/biolab/following{/other_user}","gists_url":"https://api.github.com/users/biolab/gists{/gist_id}","starred_url":"https://api.github.com/users/biolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biolab/subscriptions","organizations_url":"https://api.github.com/users/biolab/orgs","repos_url":"https://api.github.com/users/biolab/repos","events_url":"https://api.github.com/users/biolab/events{/privacy}","received_events_url":"https://api.github.com/users/biolab/received_events","type":"Organization","site_admin":false},"repo":{"id":8357227,"name":"orange3","full_name":"biolab/orange3","owner":{"login":"biolab","id":555189,"avatar_url":"https://avatars.githubusercontent.com/u/555189?v=3","gravatar_id":"","url":"https://api.github.com/users/biolab","html_url":"https://github.com/biolab","followers_url":"https://api.github.com/users/biolab/followers","following_url":"https://api.github.com/users/biolab/following{/other_user}","gists_url":"https://api.github.com/users/biolab/gists{/gist_id}","starred_url":"https://api.github.com/users/biolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biolab/subscriptions","organizations_url":"https://api.github.com/users/biolab/orgs","repos_url":"https://api.github.com/users/biolab/repos","events_url":"https://api.github.com/users/biolab/events{/privacy}","received_events_url":"https://api.github.com/users/biolab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biolab/orange3","description":"Orange 3 data mining suite: http://orange.biolab.si ","fork":false,"url":"https://api.github.com/repos/biolab/orange3","forks_url":"https://api.github.com/repos/biolab/orange3/forks","keys_url":"https://api.github.com/repos/biolab/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biolab/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biolab/orange3/teams","hooks_url":"https://api.github.com/repos/biolab/orange3/hooks","issue_events_url":"https://api.github.com/repos/biolab/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/biolab/orange3/events","assignees_url":"https://api.github.com/repos/biolab/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/biolab/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/biolab/orange3/tags","blobs_url":"https://api.github.com/repos/biolab/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biolab/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biolab/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/biolab/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/biolab/orange3/languages","stargazers_url":"https://api.github.com/repos/biolab/orange3/stargazers","contributors_url":"https://api.github.com/repos/biolab/orange3/contributors","subscribers_url":"https://api.github.com/repos/biolab/orange3/subscribers","subscription_url":"https://api.github.com/repos/biolab/orange3/subscription","commits_url":"https://api.github.com/repos/biolab/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/biolab/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/biolab/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/biolab/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/biolab/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/biolab/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biolab/orange3/merges","archive_url":"https://api.github.com/repos/biolab/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biolab/orange3/downloads","issues_url":"https://api.github.com/repos/biolab/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/biolab/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/biolab/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/biolab/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biolab/orange3/labels{/name}","releases_url":"https://api.github.com/repos/biolab/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/biolab/orange3/deployments","created_at":"2013-02-22T12:52:56Z","updated_at":"2016-03-10T17:48:40Z","pushed_at":"2016-03-11T10:55:48Z","git_url":"git://github.com/biolab/orange3.git","ssh_url":"git@github.com:biolab/orange3.git","clone_url":"https://github.com/biolab/orange3.git","svn_url":"https://github.com/biolab/orange3","homepage":"","size":75647,"stargazers_count":216,"watchers_count":216,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":73,"forks":97,"open_issues":73,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1092"},"html":{"href":"https://github.com/biolab/orange3/pull/1092"},"issue":{"href":"https://api.github.com/repos/biolab/orange3/issues/1092"},"comments":{"href":"https://api.github.com/repos/biolab/orange3/issues/1092/comments"},"review_comments":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1092/comments"},"review_comment":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1092/commits"},"statuses":{"href":"https://api.github.com/repos/biolab/orange3/statuses/d85b56e0a5f2d091304443343b9aa855656ac6a4"}}}}