{"action":"created","issue":{"url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/24","repository_url":"https://api.github.com/repos/pavanramkumar/pyglmnet","labels_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/24/comments","events_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/24/events","html_url":"https://github.com/pavanramkumar/pyglmnet/issues/24","id":152303771,"number":24,"title":"more flexible with y input format","user":{"login":"hugoguh","id":3664942,"avatar_url":"https://avatars.githubusercontent.com/u/3664942?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoguh","html_url":"https://github.com/hugoguh","followers_url":"https://api.github.com/users/hugoguh/followers","following_url":"https://api.github.com/users/hugoguh/following{/other_user}","gists_url":"https://api.github.com/users/hugoguh/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoguh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoguh/subscriptions","organizations_url":"https://api.github.com/users/hugoguh/orgs","repos_url":"https://api.github.com/users/hugoguh/repos","events_url":"https://api.github.com/users/hugoguh/events{/privacy}","received_events_url":"https://api.github.com/users/hugoguh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-01T17:47:24Z","updated_at":"2016-05-01T22:43:06Z","closed_at":null,"body":"for poisson and binomial and normal  i get an error if y isn't a 2d n-by-1 array. should allow a one dimensional array.\r\ne.g.:\r\n`X, y = make_classification(n_samples=10000, n_classes=2, \r\n                           n_informative=100, n_features=100, n_redundant=0)`\r\n`model = GLM(distr='binomial', verbose=False, alpha=0.05, \r\n            max_iter=1000, learning_rate=1e-4, \r\n            reg_lambda=[0])`\r\n`model.fit(X, np.transpose(np.atleast_2d(y)))`\r\n\r\nshouldn’t give an error when input `model.fit(X, y)`, make the transformation inside"},"comment":{"url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/comments/216078719","html_url":"https://github.com/pavanramkumar/pyglmnet/issues/24#issuecomment-216078719","issue_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/24","id":216078719,"user":{"login":"titipata","id":8295838,"avatar_url":"https://avatars.githubusercontent.com/u/8295838?v=3","gravatar_id":"","url":"https://api.github.com/users/titipata","html_url":"https://github.com/titipata","followers_url":"https://api.github.com/users/titipata/followers","following_url":"https://api.github.com/users/titipata/following{/other_user}","gists_url":"https://api.github.com/users/titipata/gists{/gist_id}","starred_url":"https://api.github.com/users/titipata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titipata/subscriptions","organizations_url":"https://api.github.com/users/titipata/orgs","repos_url":"https://api.github.com/users/titipata/repos","events_url":"https://api.github.com/users/titipata/events{/privacy}","received_events_url":"https://api.github.com/users/titipata/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T22:43:05Z","updated_at":"2016-05-01T22:43:05Z","body":"This should partially solve by https://github.com/pavanramkumar/pyglmnet/pull/27."}}