{"action":"created","comment":{"url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/comments/29073772","id":29073772,"diff_hunk":"@@ -0,0 +1,174 @@\n+#!/usr/bin/env julia\n+\n+\n+# require(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"Util.jl\"))\n+# require(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"CelesteTypes.jl\"))\n+# require(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"ElboDeriv.jl\"))\n+# require(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"OptimizeElbo.jl\"))\n+\n+#include(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"Transform.jl\"))\n+#include(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"CelesteTypes.jl\"))\n+#include(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"ElboDeriv.jl\"))\n+#include(joinpath(Pkg.dir(\"Celeste\"), \"src\", \"OptimizeElbo.jl\"))\n+\n+\n+#include(joinpath(Pkg.dir(\"Celeste\"), \"test\", \"test_derivs.jl\"))\n+\n+using Celeste\n+using CelesteTypes\n+using Transform\n+\n+import OptimizeElbo\n+import ElboDeriv\n+\n+using Base.Test\n+using SampleData","path":"bin/unconstrained_sandbox.jl","position":25,"original_position":25,"commit_id":"84aca328bed5db51d6385d38ddcf75c1d98f6d49","original_commit_id":"84aca328bed5db51d6385d38ddcf75c1d98f6d49","user":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"body":"I do `using CelesteTypes` because that file contains types and functions that are used all over...someone developing Celeste needs to be very familiar with them. For all the other modules, I prefer `import`, because the functions in them aren't as second nature...it'd be easier to forget where and in what context these functions were defined","created_at":"2015-04-24T18:33:44Z","updated_at":"2015-04-24T18:33:44Z","html_url":"https://github.com/jeff-regier/Celeste.jl/pull/21#discussion_r29073772","pull_request_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/comments/29073772"},"html":{"href":"https://github.com/jeff-regier/Celeste.jl/pull/21#discussion_r29073772"},"pull_request":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21","id":34012458,"html_url":"https://github.com/jeff-regier/Celeste.jl/pull/21","diff_url":"https://github.com/jeff-regier/Celeste.jl/pull/21.diff","patch_url":"https://github.com/jeff-regier/Celeste.jl/pull/21.patch","issue_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/21","number":21,"state":"closed","locked":false,"title":"Unconstrain","user":{"login":"rgiordan","id":4494910,"avatar_url":"https://avatars.githubusercontent.com/u/4494910?v=3","gravatar_id":"","url":"https://api.github.com/users/rgiordan","html_url":"https://github.com/rgiordan","followers_url":"https://api.github.com/users/rgiordan/followers","following_url":"https://api.github.com/users/rgiordan/following{/other_user}","gists_url":"https://api.github.com/users/rgiordan/gists{/gist_id}","starred_url":"https://api.github.com/users/rgiordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgiordan/subscriptions","organizations_url":"https://api.github.com/users/rgiordan/orgs","repos_url":"https://api.github.com/users/rgiordan/repos","events_url":"https://api.github.com/users/rgiordan/events{/privacy}","received_events_url":"https://api.github.com/users/rgiordan/received_events","type":"User","site_admin":false},"body":"Hi Jeff,\r\n\r\nI factored out the optimzation from the ELBO calculation.  The transform \"rect_transform\" (maybe not the best name) should be identical to the original scripts, and now it will be easy to experiment with different parameterizations without having to touch any of the ELBO calculations.  This will also make it possible to add quasars and easier to calculate the hessian.\r\n\r\nIt's not clear yet whether the unconstrained parameterization alone will buy much in terms of speed.\r\n\r\nComments are welcome, of course.  The unit tests are passing on my machine, but the github build seems to be missing gsl.\r\n\r\nRyan\r\n\r\nRyan\r\n ","created_at":"2015-04-24T01:40:23Z","updated_at":"2015-04-24T18:33:44Z","closed_at":"2015-04-24T06:36:51Z","merged_at":"2015-04-24T06:36:51Z","merge_commit_sha":"0e78671945f8f443193ffbfe1afa4d69bf7dff8b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21/commits","review_comments_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21/comments","review_comment_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/21/comments","statuses_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/statuses/84aca328bed5db51d6385d38ddcf75c1d98f6d49","head":{"label":"jeff-regier:unconstrain","ref":"unconstrain","sha":"84aca328bed5db51d6385d38ddcf75c1d98f6d49","user":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"repo":{"id":28730928,"name":"Celeste.jl","full_name":"jeff-regier/Celeste.jl","owner":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeff-regier/Celeste.jl","description":"scalable inference for a generative model of astronomical images","fork":false,"url":"https://api.github.com/repos/jeff-regier/Celeste.jl","forks_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/forks","keys_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/teams","hooks_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/hooks","issue_events_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/events{/number}","events_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/events","assignees_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/assignees{/user}","branches_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/branches{/branch}","tags_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/tags","blobs_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/languages","stargazers_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/stargazers","contributors_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/contributors","subscribers_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/subscribers","subscription_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/subscription","commits_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/contents/{+path}","compare_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/merges","archive_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/downloads","issues_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues{/number}","pulls_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/labels{/name}","releases_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/releases{/id}","created_at":"2015-01-03T00:47:34Z","updated_at":"2015-04-24T06:36:53Z","pushed_at":"2015-04-24T06:37:07Z","git_url":"git://github.com/jeff-regier/Celeste.jl.git","ssh_url":"git@github.com:jeff-regier/Celeste.jl.git","clone_url":"https://github.com/jeff-regier/Celeste.jl.git","svn_url":"https://github.com/jeff-regier/Celeste.jl","homepage":null,"size":27591,"stargazers_count":1,"watchers_count":1,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"jeff-regier:master","ref":"master","sha":"0ce35043ce8b6556b4edd4ab348606aaf101abf3","user":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"repo":{"id":28730928,"name":"Celeste.jl","full_name":"jeff-regier/Celeste.jl","owner":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeff-regier/Celeste.jl","description":"scalable inference for a generative model of astronomical images","fork":false,"url":"https://api.github.com/repos/jeff-regier/Celeste.jl","forks_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/forks","keys_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/teams","hooks_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/hooks","issue_events_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/events{/number}","events_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/events","assignees_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/assignees{/user}","branches_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/branches{/branch}","tags_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/tags","blobs_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/languages","stargazers_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/stargazers","contributors_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/contributors","subscribers_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/subscribers","subscription_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/subscription","commits_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/contents/{+path}","compare_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/merges","archive_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/downloads","issues_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues{/number}","pulls_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/labels{/name}","releases_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/releases{/id}","created_at":"2015-01-03T00:47:34Z","updated_at":"2015-04-24T06:36:53Z","pushed_at":"2015-04-24T06:37:07Z","git_url":"git://github.com/jeff-regier/Celeste.jl.git","ssh_url":"git@github.com:jeff-regier/Celeste.jl.git","clone_url":"https://github.com/jeff-regier/Celeste.jl.git","svn_url":"https://github.com/jeff-regier/Celeste.jl","homepage":null,"size":27591,"stargazers_count":1,"watchers_count":1,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21"},"html":{"href":"https://github.com/jeff-regier/Celeste.jl/pull/21"},"issue":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/21"},"comments":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/jeff-regier/Celeste.jl/statuses/84aca328bed5db51d6385d38ddcf75c1d98f6d49"}}}}