{"action":"created","issue":{"url":"https://api.github.com/repos/rundherum/pymia/issues/3","repository_url":"https://api.github.com/repos/rundherum/pymia","labels_url":"https://api.github.com/repos/rundherum/pymia/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rundherum/pymia/issues/3/comments","events_url":"https://api.github.com/repos/rundherum/pymia/issues/3/events","html_url":"https://github.com/rundherum/pymia/issues/3","id":349442249,"node_id":"MDU6SXNzdWUzNDk0NDIyNDk=","number":3,"title":"Mutual Information metric raises error if fn_tp = 0","user":{"login":"riedj1","id":22291101,"node_id":"MDQ6VXNlcjIyMjkxMTAx","avatar_url":"https://avatars2.githubusercontent.com/u/22291101?v=4","gravatar_id":"","url":"https://api.github.com/users/riedj1","html_url":"https://github.com/riedj1","followers_url":"https://api.github.com/users/riedj1/followers","following_url":"https://api.github.com/users/riedj1/following{/other_user}","gists_url":"https://api.github.com/users/riedj1/gists{/gist_id}","starred_url":"https://api.github.com/users/riedj1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riedj1/subscriptions","organizations_url":"https://api.github.com/users/riedj1/orgs","repos_url":"https://api.github.com/users/riedj1/repos","events_url":"https://api.github.com/users/riedj1/events{/privacy}","received_events_url":"https://api.github.com/users/riedj1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-10T09:30:00Z","updated_at":"2018-08-10T15:48:21Z","closed_at":null,"author_association":"NONE","body":"In MI, the h1 and h2 calculations may raise errors in certain cases:\r\n\r\nwhen both fn and tp are zero (all positives), math.log2(fn_tp / n) fails. same goes for fp_tn"},"comment":{"url":"https://api.github.com/repos/rundherum/pymia/issues/comments/412124298","html_url":"https://github.com/rundherum/pymia/issues/3#issuecomment-412124298","issue_url":"https://api.github.com/repos/rundherum/pymia/issues/3","id":412124298,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjEyNDI5OA==","user":{"login":"riedj1","id":22291101,"node_id":"MDQ6VXNlcjIyMjkxMTAx","avatar_url":"https://avatars2.githubusercontent.com/u/22291101?v=4","gravatar_id":"","url":"https://api.github.com/users/riedj1","html_url":"https://github.com/riedj1","followers_url":"https://api.github.com/users/riedj1/followers","following_url":"https://api.github.com/users/riedj1/following{/other_user}","gists_url":"https://api.github.com/users/riedj1/gists{/gist_id}","starred_url":"https://api.github.com/users/riedj1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riedj1/subscriptions","organizations_url":"https://api.github.com/users/riedj1/orgs","repos_url":"https://api.github.com/users/riedj1/repos","events_url":"https://api.github.com/users/riedj1/events{/privacy}","received_events_url":"https://api.github.com/users/riedj1/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T15:48:21Z","updated_at":"2018-08-10T15:48:21Z","author_association":"NONE","body":"Yes, it does, as well as in AverageDistance. But per definition it\r\n> Computes the Hausdorff distance between the set of non-zero pixels of two images.\r\n[https://itk.org/Doxygen/html/classitk_1_1HausdorffDistanceImageFilter.html](url)\r\n\r\nSo raising an error in case someone has a zero mask is not wrong, just not convenient"}}
{"actor":{"display_login":"riedj1"}}