{"action":"created","issue":{"url":"https://api.github.com/repos/pysal/pysal/issues/861","repository_url":"https://api.github.com/repos/pysal/pysal","labels_url":"https://api.github.com/repos/pysal/pysal/issues/861/labels{/name}","comments_url":"https://api.github.com/repos/pysal/pysal/issues/861/comments","events_url":"https://api.github.com/repos/pysal/pysal/issues/861/events","html_url":"https://github.com/pysal/pysal/pull/861","id":172580690,"number":861,"title":"GSOC -SpInt","user":{"login":"TaylorOshan","id":8117709,"avatar_url":"https://avatars.githubusercontent.com/u/8117709?v=3","gravatar_id":"","url":"https://api.github.com/users/TaylorOshan","html_url":"https://github.com/TaylorOshan","followers_url":"https://api.github.com/users/TaylorOshan/followers","following_url":"https://api.github.com/users/TaylorOshan/following{/other_user}","gists_url":"https://api.github.com/users/TaylorOshan/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorOshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorOshan/subscriptions","organizations_url":"https://api.github.com/users/TaylorOshan/orgs","repos_url":"https://api.github.com/users/TaylorOshan/repos","events_url":"https://api.github.com/users/TaylorOshan/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorOshan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pysal/pysal/labels/Discussion","name":"Discussion","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"sjsrey","id":118042,"avatar_url":"https://avatars.githubusercontent.com/u/118042?v=3","gravatar_id":"","url":"https://api.github.com/users/sjsrey","html_url":"https://github.com/sjsrey","followers_url":"https://api.github.com/users/sjsrey/followers","following_url":"https://api.github.com/users/sjsrey/following{/other_user}","gists_url":"https://api.github.com/users/sjsrey/gists{/gist_id}","starred_url":"https://api.github.com/users/sjsrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjsrey/subscriptions","organizations_url":"https://api.github.com/users/sjsrey/orgs","repos_url":"https://api.github.com/users/sjsrey/repos","events_url":"https://api.github.com/users/sjsrey/events{/privacy}","received_events_url":"https://api.github.com/users/sjsrey/received_events","type":"User","site_admin":false},"assignees":[{"login":"sjsrey","id":118042,"avatar_url":"https://avatars.githubusercontent.com/u/118042?v=3","gravatar_id":"","url":"https://api.github.com/users/sjsrey","html_url":"https://github.com/sjsrey","followers_url":"https://api.github.com/users/sjsrey/followers","following_url":"https://api.github.com/users/sjsrey/following{/other_user}","gists_url":"https://api.github.com/users/sjsrey/gists{/gist_id}","starred_url":"https://api.github.com/users/sjsrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjsrey/subscriptions","organizations_url":"https://api.github.com/users/sjsrey/orgs","repos_url":"https://api.github.com/users/sjsrey/repos","events_url":"https://api.github.com/users/sjsrey/events{/privacy}","received_events_url":"https://api.github.com/users/sjsrey/received_events","type":"User","site_admin":false},{"login":"darribas","id":417363,"avatar_url":"https://avatars.githubusercontent.com/u/417363?v=3","gravatar_id":"","url":"https://api.github.com/users/darribas","html_url":"https://github.com/darribas","followers_url":"https://api.github.com/users/darribas/followers","following_url":"https://api.github.com/users/darribas/following{/other_user}","gists_url":"https://api.github.com/users/darribas/gists{/gist_id}","starred_url":"https://api.github.com/users/darribas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darribas/subscriptions","organizations_url":"https://api.github.com/users/darribas/orgs","repos_url":"https://api.github.com/users/darribas/repos","events_url":"https://api.github.com/users/darribas/events{/privacy}","received_events_url":"https://api.github.com/users/darribas/received_events","type":"User","site_admin":false},{"login":"carsonfarmer","id":1220613,"avatar_url":"https://avatars.githubusercontent.com/u/1220613?v=3","gravatar_id":"","url":"https://api.github.com/users/carsonfarmer","html_url":"https://github.com/carsonfarmer","followers_url":"https://api.github.com/users/carsonfarmer/followers","following_url":"https://api.github.com/users/carsonfarmer/following{/other_user}","gists_url":"https://api.github.com/users/carsonfarmer/gists{/gist_id}","starred_url":"https://api.github.com/users/carsonfarmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carsonfarmer/subscriptions","organizations_url":"https://api.github.com/users/carsonfarmer/orgs","repos_url":"https://api.github.com/users/carsonfarmer/repos","events_url":"https://api.github.com/users/carsonfarmer/events{/privacy}","received_events_url":"https://api.github.com/users/carsonfarmer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":17,"created_at":"2016-08-22T23:44:38Z","updated_at":"2016-09-04T17:56:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pysal/pysal/pulls/861","html_url":"https://github.com/pysal/pysal/pull/861","diff_url":"https://github.com/pysal/pysal/pull/861.diff","patch_url":"https://github.com/pysal/pysal/pull/861.patch"},"body":"This PR is to promote review and discussion of what I have produced as a result of my [Google Summer of Code project](https://github.com/pysal/pysal/wiki/SpInt-Development), which was to develop code for spatial interaction modeling and the general analysis of spatial interaction data. \r\n\r\nA list of the current features, and future work is [here](https://github.com/TaylorOshan/pysal/tree/spint/pysal/contrib/spint) and an in-depth log of the project development can be found on the [project blog](https://tayloroshan.github.io/). A jupyter notebook that showcases the use of the main features is [here](https://github.com/TaylorOshan/pysal/blob/spint/pysal/contrib/spint/notebooks/examples/Example_NYCBikes_AllFeatures.ipynb).\r\n\r\nSome potential points of discussion:\r\n\r\n1. The CountModel class: originally meant to act as a dispatcher to different types of count models and estimation techniques, it currently only dispatched to Poisson models estimated using IWLS, which makes it sort of superficial. If support for more models/estimation techniques are added then this might become more useful. If non-count models (i.e., Gaussian) are added, perhaps a better name reflective of this flexibility should be chosen. \r\n\r\n2. VecMoran class: right now this class relies on list comprehensions to store the output of permutations. For large datasets, the memory overheard becomes huge, so perhaps there is a better way to store only the necessary output rather than say, the entire W object for each permutation. This problem does not arise in a regular Moran's I because the permutation does not effect the spatial organization of the spatial units as it does in the vector-based Moran's I. \r\n\r\n3. OD based weights: the ODW type spatial weight, which is based on the contiguity of both origins and destinations, currently takes in an ``n x n`` origin W and and ``n x n`` destination W (often these are the same) and returns the ``n**2 x n**2`` origin-destination W. It might be useful, depending on how development of a SAR Lag spatial interaction model goes, to have it also return ``n**2 x n**2`` W's for the origins and destinations too. These are just the result of ``np.kron(np.identity(n), originW)`` and ``np.kron(destinationW, np.identity(n))`` and are needed to have W objects that match the dimensions of the ``n x 1`` vector of spatial interaction observations. This point overlaps with #847\r\n\r\n4. Default intercept behavior: currently the spatial interaction models are calibrated without intercepts. This can be changed using the boolean parameter ``constant=True``. I found that the intercept needs to be omitted for the results to match those calibrated from maximum entropy and maximum likelihood estimation, though this default behavior might not always be optimal. \r\n"},"comment":{"url":"https://api.github.com/repos/pysal/pysal/issues/comments/244618791","html_url":"https://github.com/pysal/pysal/pull/861#issuecomment-244618791","issue_url":"https://api.github.com/repos/pysal/pysal/issues/861","id":244618791,"user":{"login":"TaylorOshan","id":8117709,"avatar_url":"https://avatars.githubusercontent.com/u/8117709?v=3","gravatar_id":"","url":"https://api.github.com/users/TaylorOshan","html_url":"https://github.com/TaylorOshan","followers_url":"https://api.github.com/users/TaylorOshan/followers","following_url":"https://api.github.com/users/TaylorOshan/following{/other_user}","gists_url":"https://api.github.com/users/TaylorOshan/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorOshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorOshan/subscriptions","organizations_url":"https://api.github.com/users/TaylorOshan/orgs","repos_url":"https://api.github.com/users/TaylorOshan/repos","events_url":"https://api.github.com/users/TaylorOshan/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorOshan/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T17:56:50Z","updated_at":"2016-09-04T17:56:50Z","body":"Alright, after merging #6 and then making a final edit to the contrib index, I think everything is correct and up-to-date. "}}
{"actor":{"display_login":"TaylorOshan"}}