{"action":"created","comment":{"url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/comments/184863228","pull_request_review_id":116146869,"id":184863228,"diff_hunk":"@@ -47,3 +47,40 @@ def p(new_dataset):\n         return new_dataset.assign(**{prediction_col: model.predict(x_new)})\n \n     return p, p(dataset)\n+\n+def adaptive(dataset,price_cols, target_col, prediction_col, tau):  \n+\n+    import numpy as np\n+    from scipy.stats import norm\n+    from scipy.optimize import brent\n+    from evaluation import quantile_loss_evaluator","path":"src/qrnn/models.py","position":10,"original_position":10,"commit_id":"8e851d8a0da027bece15be9af190d3e87ff3913c","original_commit_id":"8e851d8a0da027bece15be9af190d3e87ff3913c","user":{"login":"matheusfacure","id":18542597,"avatar_url":"https://avatars0.githubusercontent.com/u/18542597?v=4","gravatar_id":"","url":"https://api.github.com/users/matheusfacure","html_url":"https://github.com/matheusfacure","followers_url":"https://api.github.com/users/matheusfacure/followers","following_url":"https://api.github.com/users/matheusfacure/following{/other_user}","gists_url":"https://api.github.com/users/matheusfacure/gists{/gist_id}","starred_url":"https://api.github.com/users/matheusfacure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheusfacure/subscriptions","organizations_url":"https://api.github.com/users/matheusfacure/orgs","repos_url":"https://api.github.com/users/matheusfacure/repos","events_url":"https://api.github.com/users/matheusfacure/events{/privacy}","received_events_url":"https://api.github.com/users/matheusfacure/received_events","type":"User","site_admin":false},"body":"Isso vai dar erro. Vc tem que importar `from qrnn.evaluation import quantile_loss_evaluator`. Além disso, pode mover essa importação e a do Numpy pra fora da função, pro topo do arquivo. Elas são gerais o suficiente que poderiam ser usadas em mais de um modelo\r\n","created_at":"2018-04-28T19:31:44Z","updated_at":"2018-04-28T19:33:34Z","html_url":"https://github.com/lamfo-unb/QRNN/pull/11#discussion_r184863228","pull_request_url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/comments/184863228"},"html":{"href":"https://github.com/lamfo-unb/QRNN/pull/11#discussion_r184863228"},"pull_request":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11","id":181055072,"html_url":"https://github.com/lamfo-unb/QRNN/pull/11","diff_url":"https://github.com/lamfo-unb/QRNN/pull/11.diff","patch_url":"https://github.com/lamfo-unb/QRNN/pull/11.patch","issue_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues/11","number":11,"state":"open","locked":false,"title":"Benchmark from R file","user":{"login":"sgdantas","id":34652852,"avatar_url":"https://avatars3.githubusercontent.com/u/34652852?v=4","gravatar_id":"","url":"https://api.github.com/users/sgdantas","html_url":"https://github.com/sgdantas","followers_url":"https://api.github.com/users/sgdantas/followers","following_url":"https://api.github.com/users/sgdantas/following{/other_user}","gists_url":"https://api.github.com/users/sgdantas/gists{/gist_id}","starred_url":"https://api.github.com/users/sgdantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgdantas/subscriptions","organizations_url":"https://api.github.com/users/sgdantas/orgs","repos_url":"https://api.github.com/users/sgdantas/repos","events_url":"https://api.github.com/users/sgdantas/events{/privacy}","received_events_url":"https://api.github.com/users/sgdantas/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-11T23:34:41Z","updated_at":"2018-04-28T19:33:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bab72df47af56de1242410fe4cd6c6f7a4249e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11/commits","review_comments_url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11/comments","review_comment_url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues/11/comments","statuses_url":"https://api.github.com/repos/lamfo-unb/QRNN/statuses/8e851d8a0da027bece15be9af190d3e87ff3913c","head":{"label":"lamfo-unb:benchmark","ref":"benchmark","sha":"8e851d8a0da027bece15be9af190d3e87ff3913c","user":{"login":"lamfo-unb","id":25709161,"avatar_url":"https://avatars2.githubusercontent.com/u/25709161?v=4","gravatar_id":"","url":"https://api.github.com/users/lamfo-unb","html_url":"https://github.com/lamfo-unb","followers_url":"https://api.github.com/users/lamfo-unb/followers","following_url":"https://api.github.com/users/lamfo-unb/following{/other_user}","gists_url":"https://api.github.com/users/lamfo-unb/gists{/gist_id}","starred_url":"https://api.github.com/users/lamfo-unb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamfo-unb/subscriptions","organizations_url":"https://api.github.com/users/lamfo-unb/orgs","repos_url":"https://api.github.com/users/lamfo-unb/repos","events_url":"https://api.github.com/users/lamfo-unb/events{/privacy}","received_events_url":"https://api.github.com/users/lamfo-unb/received_events","type":"Organization","site_admin":false},"repo":{"id":112094200,"name":"QRNN","full_name":"lamfo-unb/QRNN","owner":{"login":"lamfo-unb","id":25709161,"avatar_url":"https://avatars2.githubusercontent.com/u/25709161?v=4","gravatar_id":"","url":"https://api.github.com/users/lamfo-unb","html_url":"https://github.com/lamfo-unb","followers_url":"https://api.github.com/users/lamfo-unb/followers","following_url":"https://api.github.com/users/lamfo-unb/following{/other_user}","gists_url":"https://api.github.com/users/lamfo-unb/gists{/gist_id}","starred_url":"https://api.github.com/users/lamfo-unb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamfo-unb/subscriptions","organizations_url":"https://api.github.com/users/lamfo-unb/orgs","repos_url":"https://api.github.com/users/lamfo-unb/repos","events_url":"https://api.github.com/users/lamfo-unb/events{/privacy}","received_events_url":"https://api.github.com/users/lamfo-unb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lamfo-unb/QRNN","description":"Code for the Quantile RNN for VaR estimation","fork":false,"url":"https://api.github.com/repos/lamfo-unb/QRNN","forks_url":"https://api.github.com/repos/lamfo-unb/QRNN/forks","keys_url":"https://api.github.com/repos/lamfo-unb/QRNN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lamfo-unb/QRNN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lamfo-unb/QRNN/teams","hooks_url":"https://api.github.com/repos/lamfo-unb/QRNN/hooks","issue_events_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues/events{/number}","events_url":"https://api.github.com/repos/lamfo-unb/QRNN/events","assignees_url":"https://api.github.com/repos/lamfo-unb/QRNN/assignees{/user}","branches_url":"https://api.github.com/repos/lamfo-unb/QRNN/branches{/branch}","tags_url":"https://api.github.com/repos/lamfo-unb/QRNN/tags","blobs_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/refs{/sha}","trees_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lamfo-unb/QRNN/statuses/{sha}","languages_url":"https://api.github.com/repos/lamfo-unb/QRNN/languages","stargazers_url":"https://api.github.com/repos/lamfo-unb/QRNN/stargazers","contributors_url":"https://api.github.com/repos/lamfo-unb/QRNN/contributors","subscribers_url":"https://api.github.com/repos/lamfo-unb/QRNN/subscribers","subscription_url":"https://api.github.com/repos/lamfo-unb/QRNN/subscription","commits_url":"https://api.github.com/repos/lamfo-unb/QRNN/commits{/sha}","git_commits_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/commits{/sha}","comments_url":"https://api.github.com/repos/lamfo-unb/QRNN/comments{/number}","issue_comment_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues/comments{/number}","contents_url":"https://api.github.com/repos/lamfo-unb/QRNN/contents/{+path}","compare_url":"https://api.github.com/repos/lamfo-unb/QRNN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lamfo-unb/QRNN/merges","archive_url":"https://api.github.com/repos/lamfo-unb/QRNN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lamfo-unb/QRNN/downloads","issues_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues{/number}","pulls_url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls{/number}","milestones_url":"https://api.github.com/repos/lamfo-unb/QRNN/milestones{/number}","notifications_url":"https://api.github.com/repos/lamfo-unb/QRNN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lamfo-unb/QRNN/labels{/name}","releases_url":"https://api.github.com/repos/lamfo-unb/QRNN/releases{/id}","deployments_url":"https://api.github.com/repos/lamfo-unb/QRNN/deployments","created_at":"2017-11-26T15:31:44Z","updated_at":"2018-04-11T00:39:52Z","pushed_at":"2018-04-20T13:25:15Z","git_url":"git://github.com/lamfo-unb/QRNN.git","ssh_url":"git@github.com:lamfo-unb/QRNN.git","clone_url":"https://github.com/lamfo-unb/QRNN.git","svn_url":"https://github.com/lamfo-unb/QRNN","homepage":"","size":855,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"lamfo-unb:master","ref":"master","sha":"d72fdc10733f45d52de7390c9b772aaa3a077cd0","user":{"login":"lamfo-unb","id":25709161,"avatar_url":"https://avatars2.githubusercontent.com/u/25709161?v=4","gravatar_id":"","url":"https://api.github.com/users/lamfo-unb","html_url":"https://github.com/lamfo-unb","followers_url":"https://api.github.com/users/lamfo-unb/followers","following_url":"https://api.github.com/users/lamfo-unb/following{/other_user}","gists_url":"https://api.github.com/users/lamfo-unb/gists{/gist_id}","starred_url":"https://api.github.com/users/lamfo-unb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamfo-unb/subscriptions","organizations_url":"https://api.github.com/users/lamfo-unb/orgs","repos_url":"https://api.github.com/users/lamfo-unb/repos","events_url":"https://api.github.com/users/lamfo-unb/events{/privacy}","received_events_url":"https://api.github.com/users/lamfo-unb/received_events","type":"Organization","site_admin":false},"repo":{"id":112094200,"name":"QRNN","full_name":"lamfo-unb/QRNN","owner":{"login":"lamfo-unb","id":25709161,"avatar_url":"https://avatars2.githubusercontent.com/u/25709161?v=4","gravatar_id":"","url":"https://api.github.com/users/lamfo-unb","html_url":"https://github.com/lamfo-unb","followers_url":"https://api.github.com/users/lamfo-unb/followers","following_url":"https://api.github.com/users/lamfo-unb/following{/other_user}","gists_url":"https://api.github.com/users/lamfo-unb/gists{/gist_id}","starred_url":"https://api.github.com/users/lamfo-unb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamfo-unb/subscriptions","organizations_url":"https://api.github.com/users/lamfo-unb/orgs","repos_url":"https://api.github.com/users/lamfo-unb/repos","events_url":"https://api.github.com/users/lamfo-unb/events{/privacy}","received_events_url":"https://api.github.com/users/lamfo-unb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lamfo-unb/QRNN","description":"Code for the Quantile RNN for VaR estimation","fork":false,"url":"https://api.github.com/repos/lamfo-unb/QRNN","forks_url":"https://api.github.com/repos/lamfo-unb/QRNN/forks","keys_url":"https://api.github.com/repos/lamfo-unb/QRNN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lamfo-unb/QRNN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lamfo-unb/QRNN/teams","hooks_url":"https://api.github.com/repos/lamfo-unb/QRNN/hooks","issue_events_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues/events{/number}","events_url":"https://api.github.com/repos/lamfo-unb/QRNN/events","assignees_url":"https://api.github.com/repos/lamfo-unb/QRNN/assignees{/user}","branches_url":"https://api.github.com/repos/lamfo-unb/QRNN/branches{/branch}","tags_url":"https://api.github.com/repos/lamfo-unb/QRNN/tags","blobs_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/refs{/sha}","trees_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lamfo-unb/QRNN/statuses/{sha}","languages_url":"https://api.github.com/repos/lamfo-unb/QRNN/languages","stargazers_url":"https://api.github.com/repos/lamfo-unb/QRNN/stargazers","contributors_url":"https://api.github.com/repos/lamfo-unb/QRNN/contributors","subscribers_url":"https://api.github.com/repos/lamfo-unb/QRNN/subscribers","subscription_url":"https://api.github.com/repos/lamfo-unb/QRNN/subscription","commits_url":"https://api.github.com/repos/lamfo-unb/QRNN/commits{/sha}","git_commits_url":"https://api.github.com/repos/lamfo-unb/QRNN/git/commits{/sha}","comments_url":"https://api.github.com/repos/lamfo-unb/QRNN/comments{/number}","issue_comment_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues/comments{/number}","contents_url":"https://api.github.com/repos/lamfo-unb/QRNN/contents/{+path}","compare_url":"https://api.github.com/repos/lamfo-unb/QRNN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lamfo-unb/QRNN/merges","archive_url":"https://api.github.com/repos/lamfo-unb/QRNN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lamfo-unb/QRNN/downloads","issues_url":"https://api.github.com/repos/lamfo-unb/QRNN/issues{/number}","pulls_url":"https://api.github.com/repos/lamfo-unb/QRNN/pulls{/number}","milestones_url":"https://api.github.com/repos/lamfo-unb/QRNN/milestones{/number}","notifications_url":"https://api.github.com/repos/lamfo-unb/QRNN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lamfo-unb/QRNN/labels{/name}","releases_url":"https://api.github.com/repos/lamfo-unb/QRNN/releases{/id}","deployments_url":"https://api.github.com/repos/lamfo-unb/QRNN/deployments","created_at":"2017-11-26T15:31:44Z","updated_at":"2018-04-11T00:39:52Z","pushed_at":"2018-04-20T13:25:15Z","git_url":"git://github.com/lamfo-unb/QRNN.git","ssh_url":"git@github.com:lamfo-unb/QRNN.git","clone_url":"https://github.com/lamfo-unb/QRNN.git","svn_url":"https://github.com/lamfo-unb/QRNN","homepage":"","size":855,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11"},"html":{"href":"https://github.com/lamfo-unb/QRNN/pull/11"},"issue":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/issues/11"},"comments":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/lamfo-unb/QRNN/statuses/8e851d8a0da027bece15be9af190d3e87ff3913c"}},"author_association":"NONE"}}
{"actor":{"display_login":"matheusfacure"}}