{"action":"created","comment":{"url":"https://api.github.com/repos/biolab/orange3/pulls/comments/73321067","id":73321067,"diff_hunk":"@@ -0,0 +1,251 @@\n+import numpy as np\n+\n+from Orange.data import Table\n+from Orange.widgets import widget, gui, settings\n+from Orange.widgets.utils.itemmodels import PyTableModel\n+\n+from PyQt4.QtCore import Qt, QSize, pyqtSignal, QRectF, QLineF, QLocale\n+from PyQt4.QtGui import (QApplication, QLabel, QTableView, QStandardItem,\n+                         QStandardItemModel, QSortFilterProxyModel,\n+                         QMainWindow, QMouseEvent, QGraphicsView,\n+                         QPen, QBrush, QColor, QAbstractItemView,\n+                         QItemDelegate, QStyledItemDelegate, QPainter,\n+                         QFontMetrics, QStyle)\n+\n+\n+class Rule:  # temp - DELETE\n+    curr_class_dist = [0, 28, 0]\n+\n+    def __str__(self):\n+        return \"IF diau g>=0.172 AND Elu 210>=-0.069 THEN function=Resp\"\n+rules = []\n+\n+\n+class OWRuleViewer(widget.OWWidget):\n+    name = \"Rule Viewer\"\n+    description = \"Review rules induced from data.\"\n+    icon = \"\"\n+    priority = 18\n+\n+    inputs = None\n+    outputs = None\n+\n+    want_basic_layout = True\n+    want_main_area = True\n+    want_control_area = False\n+\n+    UserAdviceMessages = [\n+        #  widget.Message()\n+    ]\n+\n+    headers = [\"IF cond\", \"\", \"THEN class\", \"quality\", \"class dist\"]\n+\n+    def __init__(self):\n+        raise NotImplementedError\n+        self.rule_list = None\n+\n+        self.tableModel = PyTableModel(sequence=[], parent=self, editable=True)","path":"Orange/widgets/visualize/owruleviewer.py","position":47,"original_position":47,"commit_id":"c507c1c199dd3e3b3e2755c32e1c60f878e99641","original_commit_id":"c507c1c199dd3e3b3e2755c32e1c60f878e99641","user":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"body":"`editable=True` makes the view respond to double-click so the user can write their own values.","created_at":"2016-08-03T11:20:16Z","updated_at":"2016-08-03T11:20:16Z","html_url":"https://github.com/biolab/orange3/pull/1397#discussion_r73321067","pull_request_url":"https://api.github.com/repos/biolab/orange3/pulls/1397","_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/73321067"},"html":{"href":"https://github.com/biolab/orange3/pull/1397#discussion_r73321067"},"pull_request":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1397"}}},"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/1397","id":75971660,"html_url":"https://github.com/biolab/orange3/pull/1397","diff_url":"https://github.com/biolab/orange3/pull/1397.diff","patch_url":"https://github.com/biolab/orange3/pull/1397.patch","issue_url":"https://api.github.com/repos/biolab/orange3/issues/1397","number":1397,"state":"open","locked":false,"title":"[WIP] [ENH] Rule induction (CN2)","user":{"login":"matevzkren","id":13089174,"avatar_url":"https://avatars.githubusercontent.com/u/13089174?v=3","gravatar_id":"","url":"https://api.github.com/users/matevzkren","html_url":"https://github.com/matevzkren","followers_url":"https://api.github.com/users/matevzkren/followers","following_url":"https://api.github.com/users/matevzkren/following{/other_user}","gists_url":"https://api.github.com/users/matevzkren/gists{/gist_id}","starred_url":"https://api.github.com/users/matevzkren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matevzkren/subscriptions","organizations_url":"https://api.github.com/users/matevzkren/orgs","repos_url":"https://api.github.com/users/matevzkren/repos","events_url":"https://api.github.com/users/matevzkren/events{/privacy}","received_events_url":"https://api.github.com/users/matevzkren/received_events","type":"User","site_admin":false},"body":"A more general framework of replaceable individual components that can be fine-tuned to specific needs. To induce rules from examples, divide-and-conquer strategy is applied. CN2 and CN2Unordered algorithms have been implemented so far.. Next up -> widgets!\r\n\r\n<!--\r\nSquash the commits, as appropriate. See .github/CONTRIBUTING.md for\r\nmore information.\r\n\r\nDescribe the relevant changes in the commit messages, if they need explaining.\r\n \r\nIf the pull request introduces a new feature or an important bug fix, consider\r\nadding _one_ of the below tags, enclosed in square brackets, in its title:\r\n\r\n    ENH, FIX, DOC, WIP\r\n\r\nFor some example:\r\n\r\n    [ENH] CrossValidation: Parallelize computation\r\n    [FIX] NaiveBayesLearner: Don't crash on input containing nan values\r\n    [DOC] Extend documentation for widget development\r\n    [WIP] Working on X ... RFC please\r\n\r\nPull-requests not so tagged will be batched as \"other features and bugfixes,\"\r\nwhich is fine for stuff you don't go home and brag to your mother about.\r\n-->","created_at":"2016-07-01T12:20:25Z","updated_at":"2016-08-03T11:20:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b16bf0ed5d3829332c39b0f328a5f3d653fd9b16","assignee":{"login":"BlazZupan","id":726604,"avatar_url":"https://avatars.githubusercontent.com/u/726604?v=3","gravatar_id":"","url":"https://api.github.com/users/BlazZupan","html_url":"https://github.com/BlazZupan","followers_url":"https://api.github.com/users/BlazZupan/followers","following_url":"https://api.github.com/users/BlazZupan/following{/other_user}","gists_url":"https://api.github.com/users/BlazZupan/gists{/gist_id}","starred_url":"https://api.github.com/users/BlazZupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlazZupan/subscriptions","organizations_url":"https://api.github.com/users/BlazZupan/orgs","repos_url":"https://api.github.com/users/BlazZupan/repos","events_url":"https://api.github.com/users/BlazZupan/events{/privacy}","received_events_url":"https://api.github.com/users/BlazZupan/received_events","type":"User","site_admin":false},"assignees":[{"login":"BlazZupan","id":726604,"avatar_url":"https://avatars.githubusercontent.com/u/726604?v=3","gravatar_id":"","url":"https://api.github.com/users/BlazZupan","html_url":"https://github.com/BlazZupan","followers_url":"https://api.github.com/users/BlazZupan/followers","following_url":"https://api.github.com/users/BlazZupan/following{/other_user}","gists_url":"https://api.github.com/users/BlazZupan/gists{/gist_id}","starred_url":"https://api.github.com/users/BlazZupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlazZupan/subscriptions","organizations_url":"https://api.github.com/users/BlazZupan/orgs","repos_url":"https://api.github.com/users/BlazZupan/repos","events_url":"https://api.github.com/users/BlazZupan/events{/privacy}","received_events_url":"https://api.github.com/users/BlazZupan/received_events","type":"User","site_admin":false},{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/biolab/orange3/pulls/1397/commits","review_comments_url":"https://api.github.com/repos/biolab/orange3/pulls/1397/comments","review_comment_url":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/1397/comments","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/c507c1c199dd3e3b3e2755c32e1c60f878e99641","head":{"label":"matevzkren:gsoc_rules_CN2","ref":"gsoc_rules_CN2","sha":"c507c1c199dd3e3b3e2755c32e1c60f878e99641","user":{"login":"matevzkren","id":13089174,"avatar_url":"https://avatars.githubusercontent.com/u/13089174?v=3","gravatar_id":"","url":"https://api.github.com/users/matevzkren","html_url":"https://github.com/matevzkren","followers_url":"https://api.github.com/users/matevzkren/followers","following_url":"https://api.github.com/users/matevzkren/following{/other_user}","gists_url":"https://api.github.com/users/matevzkren/gists{/gist_id}","starred_url":"https://api.github.com/users/matevzkren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matevzkren/subscriptions","organizations_url":"https://api.github.com/users/matevzkren/orgs","repos_url":"https://api.github.com/users/matevzkren/repos","events_url":"https://api.github.com/users/matevzkren/events{/privacy}","received_events_url":"https://api.github.com/users/matevzkren/received_events","type":"User","site_admin":false},"repo":{"id":53610081,"name":"orange3","full_name":"matevzkren/orange3","owner":{"login":"matevzkren","id":13089174,"avatar_url":"https://avatars.githubusercontent.com/u/13089174?v=3","gravatar_id":"","url":"https://api.github.com/users/matevzkren","html_url":"https://github.com/matevzkren","followers_url":"https://api.github.com/users/matevzkren/followers","following_url":"https://api.github.com/users/matevzkren/following{/other_user}","gists_url":"https://api.github.com/users/matevzkren/gists{/gist_id}","starred_url":"https://api.github.com/users/matevzkren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matevzkren/subscriptions","organizations_url":"https://api.github.com/users/matevzkren/orgs","repos_url":"https://api.github.com/users/matevzkren/repos","events_url":"https://api.github.com/users/matevzkren/events{/privacy}","received_events_url":"https://api.github.com/users/matevzkren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matevzkren/orange3","description":"Orange 3 data mining suite: http://orange.biolab.si ","fork":true,"url":"https://api.github.com/repos/matevzkren/orange3","forks_url":"https://api.github.com/repos/matevzkren/orange3/forks","keys_url":"https://api.github.com/repos/matevzkren/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matevzkren/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matevzkren/orange3/teams","hooks_url":"https://api.github.com/repos/matevzkren/orange3/hooks","issue_events_url":"https://api.github.com/repos/matevzkren/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/matevzkren/orange3/events","assignees_url":"https://api.github.com/repos/matevzkren/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/matevzkren/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/matevzkren/orange3/tags","blobs_url":"https://api.github.com/repos/matevzkren/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matevzkren/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matevzkren/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/matevzkren/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matevzkren/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/matevzkren/orange3/languages","stargazers_url":"https://api.github.com/repos/matevzkren/orange3/stargazers","contributors_url":"https://api.github.com/repos/matevzkren/orange3/contributors","subscribers_url":"https://api.github.com/repos/matevzkren/orange3/subscribers","subscription_url":"https://api.github.com/repos/matevzkren/orange3/subscription","commits_url":"https://api.github.com/repos/matevzkren/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/matevzkren/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/matevzkren/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/matevzkren/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/matevzkren/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/matevzkren/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matevzkren/orange3/merges","archive_url":"https://api.github.com/repos/matevzkren/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matevzkren/orange3/downloads","issues_url":"https://api.github.com/repos/matevzkren/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/matevzkren/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/matevzkren/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/matevzkren/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matevzkren/orange3/labels{/name}","releases_url":"https://api.github.com/repos/matevzkren/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/matevzkren/orange3/deployments","created_at":"2016-03-10T19:11:10Z","updated_at":"2016-03-10T19:11:13Z","pushed_at":"2016-08-02T21:43:09Z","git_url":"git://github.com/matevzkren/orange3.git","ssh_url":"git@github.com:matevzkren/orange3.git","clone_url":"https://github.com/matevzkren/orange3.git","svn_url":"https://github.com/matevzkren/orange3","homepage":"","size":38180,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"biolab:master","ref":"master","sha":"5fcb75c92ebfdf76580517e1582e45ffe90a38e6","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-07-30T16:55:53Z","pushed_at":"2016-08-03T07:29:25Z","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":93895,"stargazers_count":440,"watchers_count":440,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":151,"mirror_url":null,"open_issues_count":49,"forks":151,"open_issues":49,"watchers":440,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1397"},"html":{"href":"https://github.com/biolab/orange3/pull/1397"},"issue":{"href":"https://api.github.com/repos/biolab/orange3/issues/1397"},"comments":{"href":"https://api.github.com/repos/biolab/orange3/issues/1397/comments"},"review_comments":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1397/comments"},"review_comment":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1397/commits"},"statuses":{"href":"https://api.github.com/repos/biolab/orange3/statuses/c507c1c199dd3e3b3e2755c32e1c60f878e99641"}}}}
{"actor":{"display_login":"kernc"}}