{"action":"created","issue":{"url":"https://api.github.com/repos/cbecker/iiboost/issues/16","labels_url":"https://api.github.com/repos/cbecker/iiboost/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/cbecker/iiboost/issues/16/comments","events_url":"https://api.github.com/repos/cbecker/iiboost/issues/16/events","html_url":"https://github.com/cbecker/iiboost/pull/16","id":65244062,"number":16,"title":"Predictions of weak learners","user":{"login":"pmneila","id":1254337,"avatar_url":"https://avatars.githubusercontent.com/u/1254337?v=3","gravatar_id":"","url":"https://api.github.com/users/pmneila","html_url":"https://github.com/pmneila","followers_url":"https://api.github.com/users/pmneila/followers","following_url":"https://api.github.com/users/pmneila/following{/other_user}","gists_url":"https://api.github.com/users/pmneila/gists{/gist_id}","starred_url":"https://api.github.com/users/pmneila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmneila/subscriptions","organizations_url":"https://api.github.com/users/pmneila/orgs","repos_url":"https://api.github.com/users/pmneila/repos","events_url":"https://api.github.com/users/pmneila/events{/privacy}","received_events_url":"https://api.github.com/users/pmneila/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-30T15:56:07Z","updated_at":"2015-04-01T13:20:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cbecker/iiboost/pulls/16","html_url":"https://github.com/cbecker/iiboost/pull/16","diff_url":"https://github.com/cbecker/iiboost/pull/16.diff","patch_url":"https://github.com/cbecker/iiboost/pull/16.patch"},"body":"New method `wlpredictWithChannels` for getting the predictions of every weak learner. The method `wl_alphas` returns the weights of the weak learners. Therefore, the final boosting scores could be obtained with\r\n\r\n```python\r\nwlpred = model.wlpredictWithChannels(image, eig, channels, anisotropy)\r\nalphas = model.wl_alphas()\r\npred = np.tensordot(wlpred, alphas, (0,0)) \r\n```\r\n\r\n`pred` should be equal (up to numerical precision) to the output of `predictWithChannels`:\r\n\r\n```python\r\npred2 = model.predictWithChannels(image, eig, channels, anisotropy)\r\nprint np.allclose(pred, pred2) # Should be True\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cbecker/iiboost/issues/comments/88478515","html_url":"https://github.com/cbecker/iiboost/pull/16#issuecomment-88478515","issue_url":"https://api.github.com/repos/cbecker/iiboost/issues/16","id":88478515,"user":{"login":"pmneila","id":1254337,"avatar_url":"https://avatars.githubusercontent.com/u/1254337?v=3","gravatar_id":"","url":"https://api.github.com/users/pmneila","html_url":"https://github.com/pmneila","followers_url":"https://api.github.com/users/pmneila/followers","following_url":"https://api.github.com/users/pmneila/following{/other_user}","gists_url":"https://api.github.com/users/pmneila/gists{/gist_id}","starred_url":"https://api.github.com/users/pmneila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmneila/subscriptions","organizations_url":"https://api.github.com/users/pmneila/orgs","repos_url":"https://api.github.com/users/pmneila/repos","events_url":"https://api.github.com/users/pmneila/events{/privacy}","received_events_url":"https://api.github.com/users/pmneila/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T13:20:36Z","updated_at":"2015-04-01T13:20:36Z","body":"\r\nAbsolutely. But then we might have to remove the `WithChannels` part out of the name or the final name would be `wlpredictIndividualWeakLearnersWithChannels`, which is not very convenient. \r\n\r\nOn the other hand, related to naming conventions, should `wl_alphas` be renamed to `wlalphas` or `wlAlphas` or similar?\r\n"}}