{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/5","id":63786464,"html_url":"https://github.com/tmadl/sklearn-expertsys/pull/5","diff_url":"https://github.com/tmadl/sklearn-expertsys/pull/5.diff","patch_url":"https://github.com/tmadl/sklearn-expertsys/pull/5.patch","issue_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues/5","number":5,"state":"closed","locked":false,"title":"reversed the meaning of class 1","user":{"login":"ghosthugger","id":2766329,"avatar_url":"https://avatars.githubusercontent.com/u/2766329?v=3","gravatar_id":"","url":"https://api.github.com/users/ghosthugger","html_url":"https://github.com/ghosthugger","followers_url":"https://api.github.com/users/ghosthugger/followers","following_url":"https://api.github.com/users/ghosthugger/following{/other_user}","gists_url":"https://api.github.com/users/ghosthugger/gists{/gist_id}","starred_url":"https://api.github.com/users/ghosthugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghosthugger/subscriptions","organizations_url":"https://api.github.com/users/ghosthugger/orgs","repos_url":"https://api.github.com/users/ghosthugger/repos","events_url":"https://api.github.com/users/ghosthugger/events{/privacy}","received_events_url":"https://api.github.com/users/ghosthugger/received_events","type":"User","site_admin":false},"body":"The meaning of the class 1 is reversed.\r\n\r\nverified with this small program:\r\nfrom RuleListClassifier import *\r\n\r\nlabels = ['temp','size']\r\nX =   [[100,12],\r\n        [12,91],\r\n        [17,92]]\r\n\r\nY =   [1,\r\n        0,\r\n        0]\r\nclf = RuleListClassifier(max_iter=50000, n_chains=3, class1label='burned', verbose=False)\r\nclf.fit(X, Y, feature_labels=labels)\r\nprint clf\r\n\r\nprints:\r\n================================================\r\nIF temp : 58.5_to_inf AND size : -inf_to_51.5 THEN probability of burned: 33.3% (1.3%-84.2%)\r\nELSE IF temp : -inf_to_58.5 AND size : 51.5_to_inf THEN probability of burned: 75.0% (29.2%-99.2%)\r\nELSE probability of burned: 50.0% (2.5%-97.5%)\r\n===============================================\r\n\r\ni.e. the meaning of the class 1 is reversed","created_at":"2016-03-22T20:22:52Z","updated_at":"2016-03-22T20:42:27Z","closed_at":"2016-03-22T20:42:27Z","merged_at":null,"merge_commit_sha":"b0b36d0023a0a3b4eaebfd7958344b1614c63186","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/5/commits","review_comments_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/5/comments","review_comment_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues/5/comments","statuses_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/statuses/43ca11168e85ae9b465738a543b983115b81b431","head":{"label":"ghosthugger:master","ref":"master","sha":"43ca11168e85ae9b465738a543b983115b81b431","user":{"login":"ghosthugger","id":2766329,"avatar_url":"https://avatars.githubusercontent.com/u/2766329?v=3","gravatar_id":"","url":"https://api.github.com/users/ghosthugger","html_url":"https://github.com/ghosthugger","followers_url":"https://api.github.com/users/ghosthugger/followers","following_url":"https://api.github.com/users/ghosthugger/following{/other_user}","gists_url":"https://api.github.com/users/ghosthugger/gists{/gist_id}","starred_url":"https://api.github.com/users/ghosthugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghosthugger/subscriptions","organizations_url":"https://api.github.com/users/ghosthugger/orgs","repos_url":"https://api.github.com/users/ghosthugger/repos","events_url":"https://api.github.com/users/ghosthugger/events{/privacy}","received_events_url":"https://api.github.com/users/ghosthugger/received_events","type":"User","site_admin":false},"repo":{"id":54505948,"name":"sklearn-expertsys","full_name":"ghosthugger/sklearn-expertsys","owner":{"login":"ghosthugger","id":2766329,"avatar_url":"https://avatars.githubusercontent.com/u/2766329?v=3","gravatar_id":"","url":"https://api.github.com/users/ghosthugger","html_url":"https://github.com/ghosthugger","followers_url":"https://api.github.com/users/ghosthugger/followers","following_url":"https://api.github.com/users/ghosthugger/following{/other_user}","gists_url":"https://api.github.com/users/ghosthugger/gists{/gist_id}","starred_url":"https://api.github.com/users/ghosthugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghosthugger/subscriptions","organizations_url":"https://api.github.com/users/ghosthugger/orgs","repos_url":"https://api.github.com/users/ghosthugger/repos","events_url":"https://api.github.com/users/ghosthugger/events{/privacy}","received_events_url":"https://api.github.com/users/ghosthugger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ghosthugger/sklearn-expertsys","description":"Highly interpretable classifiers for scikit learn, producing easily understood decision rules instead of black box models","fork":true,"url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys","forks_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/forks","keys_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/teams","hooks_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/hooks","issue_events_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/issues/events{/number}","events_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/events","assignees_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/assignees{/user}","branches_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/branches{/branch}","tags_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/tags","blobs_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/git/refs{/sha}","trees_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/statuses/{sha}","languages_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/languages","stargazers_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/stargazers","contributors_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/contributors","subscribers_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/subscribers","subscription_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/subscription","commits_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/commits{/sha}","git_commits_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/git/commits{/sha}","comments_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/comments{/number}","issue_comment_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/issues/comments{/number}","contents_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/contents/{+path}","compare_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/merges","archive_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/downloads","issues_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/issues{/number}","pulls_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/pulls{/number}","milestones_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/milestones{/number}","notifications_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/labels{/name}","releases_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/releases{/id}","deployments_url":"https://api.github.com/repos/ghosthugger/sklearn-expertsys/deployments","created_at":"2016-03-22T20:17:44Z","updated_at":"2016-03-22T20:17:45Z","pushed_at":"2016-03-22T20:19:26Z","git_url":"git://github.com/ghosthugger/sklearn-expertsys.git","ssh_url":"git@github.com:ghosthugger/sklearn-expertsys.git","clone_url":"https://github.com/ghosthugger/sklearn-expertsys.git","svn_url":"https://github.com/ghosthugger/sklearn-expertsys","homepage":null,"size":58,"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":"tmadl:master","ref":"master","sha":"fdc0bd63d38d88b975f7c130d4439c74200b8227","user":{"login":"tmadl","id":13319786,"avatar_url":"https://avatars.githubusercontent.com/u/13319786?v=3","gravatar_id":"","url":"https://api.github.com/users/tmadl","html_url":"https://github.com/tmadl","followers_url":"https://api.github.com/users/tmadl/followers","following_url":"https://api.github.com/users/tmadl/following{/other_user}","gists_url":"https://api.github.com/users/tmadl/gists{/gist_id}","starred_url":"https://api.github.com/users/tmadl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmadl/subscriptions","organizations_url":"https://api.github.com/users/tmadl/orgs","repos_url":"https://api.github.com/users/tmadl/repos","events_url":"https://api.github.com/users/tmadl/events{/privacy}","received_events_url":"https://api.github.com/users/tmadl/received_events","type":"User","site_admin":false},"repo":{"id":52333038,"name":"sklearn-expertsys","full_name":"tmadl/sklearn-expertsys","owner":{"login":"tmadl","id":13319786,"avatar_url":"https://avatars.githubusercontent.com/u/13319786?v=3","gravatar_id":"","url":"https://api.github.com/users/tmadl","html_url":"https://github.com/tmadl","followers_url":"https://api.github.com/users/tmadl/followers","following_url":"https://api.github.com/users/tmadl/following{/other_user}","gists_url":"https://api.github.com/users/tmadl/gists{/gist_id}","starred_url":"https://api.github.com/users/tmadl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmadl/subscriptions","organizations_url":"https://api.github.com/users/tmadl/orgs","repos_url":"https://api.github.com/users/tmadl/repos","events_url":"https://api.github.com/users/tmadl/events{/privacy}","received_events_url":"https://api.github.com/users/tmadl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmadl/sklearn-expertsys","description":"Highly interpretable classifiers for scikit learn, producing easily understood decision rules instead of black box models","fork":false,"url":"https://api.github.com/repos/tmadl/sklearn-expertsys","forks_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/forks","keys_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/teams","hooks_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/hooks","issue_events_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues/events{/number}","events_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/events","assignees_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/assignees{/user}","branches_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/branches{/branch}","tags_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/tags","blobs_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/statuses/{sha}","languages_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/languages","stargazers_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/stargazers","contributors_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/contributors","subscribers_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/subscribers","subscription_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/subscription","commits_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/contents/{+path}","compare_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/merges","archive_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/downloads","issues_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues{/number}","pulls_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls{/number}","milestones_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/milestones{/number}","notifications_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/labels{/name}","releases_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/releases{/id}","deployments_url":"https://api.github.com/repos/tmadl/sklearn-expertsys/deployments","created_at":"2016-02-23T05:31:06Z","updated_at":"2016-03-22T14:18:45Z","pushed_at":"2016-03-22T20:22:52Z","git_url":"git://github.com/tmadl/sklearn-expertsys.git","ssh_url":"git@github.com:tmadl/sklearn-expertsys.git","clone_url":"https://github.com/tmadl/sklearn-expertsys.git","svn_url":"https://github.com/tmadl/sklearn-expertsys","homepage":null,"size":82,"stargazers_count":175,"watchers_count":175,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/5"},"html":{"href":"https://github.com/tmadl/sklearn-expertsys/pull/5"},"issue":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues/5"},"comments":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/tmadl/sklearn-expertsys/statuses/43ca11168e85ae9b465738a543b983115b81b431"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}