{"action":"created","issue":{"url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2435","labels_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2435/labels{/name}","comments_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2435/comments","events_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2435/events","html_url":"https://github.com/statsmodels/statsmodels/pull/2435","id":85586101,"number":2435,"title":"Gam gsoc2015","user":{"login":"DonBeo","id":4463692,"avatar_url":"https://avatars.githubusercontent.com/u/4463692?v=3","gravatar_id":"","url":"https://api.github.com/users/DonBeo","html_url":"https://github.com/DonBeo","followers_url":"https://api.github.com/users/DonBeo/followers","following_url":"https://api.github.com/users/DonBeo/following{/other_user}","gists_url":"https://api.github.com/users/DonBeo/gists{/gist_id}","starred_url":"https://api.github.com/users/DonBeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonBeo/subscriptions","organizations_url":"https://api.github.com/users/DonBeo/orgs","repos_url":"https://api.github.com/users/DonBeo/repos","events_url":"https://api.github.com/users/DonBeo/events{/privacy}","received_events_url":"https://api.github.com/users/DonBeo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/statsmodels/statsmodels/labels/comp-base","name":"comp-base","color":"ededed"},{"url":"https://api.github.com/repos/statsmodels/statsmodels/labels/comp-genmod","name":"comp-genmod","color":"ededed"},{"url":"https://api.github.com/repos/statsmodels/statsmodels/labels/type-enh","name":"type-enh","color":"99ffff"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/statsmodels/statsmodels/milestones/9","html_url":"https://github.com/statsmodels/statsmodels/milestones/0.8","labels_url":"https://api.github.com/repos/statsmodels/statsmodels/milestones/9/labels","id":930392,"number":9,"title":"0.8","description":"","creator":{"login":"josef-pkt","id":440735,"avatar_url":"https://avatars.githubusercontent.com/u/440735?v=3","gravatar_id":"","url":"https://api.github.com/users/josef-pkt","html_url":"https://github.com/josef-pkt","followers_url":"https://api.github.com/users/josef-pkt/followers","following_url":"https://api.github.com/users/josef-pkt/following{/other_user}","gists_url":"https://api.github.com/users/josef-pkt/gists{/gist_id}","starred_url":"https://api.github.com/users/josef-pkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josef-pkt/subscriptions","organizations_url":"https://api.github.com/users/josef-pkt/orgs","repos_url":"https://api.github.com/users/josef-pkt/repos","events_url":"https://api.github.com/users/josef-pkt/events{/privacy}","received_events_url":"https://api.github.com/users/josef-pkt/received_events","type":"User","site_admin":false},"open_issues":203,"closed_issues":6,"state":"open","created_at":"2015-01-11T13:17:39Z","updated_at":"2015-08-17T22:06:30Z","due_on":null,"closed_at":null},"comments":199,"created_at":"2015-06-05T17:20:30Z","updated_at":"2015-08-19T17:55:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/statsmodels/statsmodels/pulls/2435","html_url":"https://github.com/statsmodels/statsmodels/pull/2435","diff_url":"https://github.com/statsmodels/statsmodels/pull/2435.diff","patch_url":"https://github.com/statsmodels/statsmodels/pull/2435.patch"},"body":"@josef-pkt  I am starting a PR .  At the moment there is the gam file that contains the gam penalty class.  Smooth_basis contains some functions to get bsplines and polynomial basis. This file will be removed when we will be able to use directly patsy.\r\n\r\nThere are also 2 files that contains examples or small scripts. We will remove them later. \r\n\r\nLet me know what do you think about that. \r\n\r\n\r\nTodo\r\n\r\n- [ ] `predict` errors  (stateful transform, patsy ?), Note fittedvalues are available\r\n       only a problem in pirls example, predict after fit works, requires spline basis values\r\n- [ ] `get_prediction` also errors, maybe consequence of predict error\r\n       currently errors because weights is None\r\n- [ ] check test coverage for offset and exposure\r\n\r\nInterface\r\n\r\n- [ ] `partial_values` `plot_partial` has inconvenient arguments (smoother and mask) instead of column index or term name or similar\r\n- [ ] formula-like interface for predict (create spline basis values internally)\r\n- [ ] adjust inherited methods like `plot_partial_residuals`  (after GSOC?)\r\n- [ ] default param names for splines (should be more informative than \"xi\" (i is range(k)), but less (?) verbose than patsy's), need them for test_terms \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/statsmodels/statsmodels/issues/comments/132720901","html_url":"https://github.com/statsmodels/statsmodels/pull/2435#issuecomment-132720901","issue_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2435","id":132720901,"user":{"login":"josef-pkt","id":440735,"avatar_url":"https://avatars.githubusercontent.com/u/440735?v=3","gravatar_id":"","url":"https://api.github.com/users/josef-pkt","html_url":"https://github.com/josef-pkt","followers_url":"https://api.github.com/users/josef-pkt/followers","following_url":"https://api.github.com/users/josef-pkt/following{/other_user}","gists_url":"https://api.github.com/users/josef-pkt/gists{/gist_id}","starred_url":"https://api.github.com/users/josef-pkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josef-pkt/subscriptions","organizations_url":"https://api.github.com/users/josef-pkt/orgs","repos_url":"https://api.github.com/users/josef-pkt/repos","events_url":"https://api.github.com/users/josef-pkt/events{/privacy}","received_events_url":"https://api.github.com/users/josef-pkt/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T17:55:30Z","updated_at":"2015-08-19T17:55:30Z","body":"I put my notebook in a gist http://nbviewer.ipython.org/gist/josef-pkt/3a0a498d8e9477035757\r\nMore than a megabyte of plots.\r\n\r\nThe examples are from articles on adaptive spline fitting or adaptive bandwidth choice. I wrote them a few years ago and need to find the reference again.\r\nSome of the examples will be difficult or impossible to fit properly with equal spaced knots are uniform/global penalization.  (But that will be a different story.)"}}