{"action":"created","issue":{"url":"https://api.github.com/repos/pySTEPS/pysteps/issues/6","repository_url":"https://api.github.com/repos/pySTEPS/pysteps","labels_url":"https://api.github.com/repos/pySTEPS/pysteps/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/pySTEPS/pysteps/issues/6/comments","events_url":"https://api.github.com/repos/pySTEPS/pysteps/issues/6/events","html_url":"https://github.com/pySTEPS/pysteps/issues/6","id":344028563,"node_id":"MDU6SXNzdWUzNDQwMjg1NjM=","number":6,"title":"Speedup of boolean summation","user":{"login":"meteoswiss-mdr","id":16132533,"node_id":"MDQ6VXNlcjE2MTMyNTMz","avatar_url":"https://avatars3.githubusercontent.com/u/16132533?v=4","gravatar_id":"","url":"https://api.github.com/users/meteoswiss-mdr","html_url":"https://github.com/meteoswiss-mdr","followers_url":"https://api.github.com/users/meteoswiss-mdr/followers","following_url":"https://api.github.com/users/meteoswiss-mdr/following{/other_user}","gists_url":"https://api.github.com/users/meteoswiss-mdr/gists{/gist_id}","starred_url":"https://api.github.com/users/meteoswiss-mdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteoswiss-mdr/subscriptions","organizations_url":"https://api.github.com/users/meteoswiss-mdr/orgs","repos_url":"https://api.github.com/users/meteoswiss-mdr/repos","events_url":"https://api.github.com/users/meteoswiss-mdr/events{/privacy}","received_events_url":"https://api.github.com/users/meteoswiss-mdr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-24T13:06:19Z","updated_at":"2018-07-25T12:36:57Z","closed_at":null,"author_association":"NONE","body":"Dear pysteps Team\r\nIt looks like one can speed-up the skill score calculation by converting the booleans to floats before the summation (roughly a factor of 30...).\r\nI hope this helps!\r\n\r\n```\r\n    H = sum(H_idx.astype(float)) # hits\r\n    M = sum(H_idx.astype(float)) # misses\r\n    F = sum(H_idx.astype(float)) # false alarms\r\n    R = sum(H_idx.astype(float)) # correct rejections\r\n```\r\n\r\nhttps://github.com/pySTEPS/pysteps/blob/3d8fda83d95af76ad04b3030e0ee75d0e544ee0c/pysteps/verification/detcatscores.py#L40"},"comment":{"url":"https://api.github.com/repos/pySTEPS/pysteps/issues/comments/407739616","html_url":"https://github.com/pySTEPS/pysteps/issues/6#issuecomment-407739616","issue_url":"https://api.github.com/repos/pySTEPS/pysteps/issues/6","id":407739616,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzczOTYxNg==","user":{"login":"pulkkins","id":17096036,"node_id":"MDQ6VXNlcjE3MDk2MDM2","avatar_url":"https://avatars2.githubusercontent.com/u/17096036?v=4","gravatar_id":"","url":"https://api.github.com/users/pulkkins","html_url":"https://github.com/pulkkins","followers_url":"https://api.github.com/users/pulkkins/followers","following_url":"https://api.github.com/users/pulkkins/following{/other_user}","gists_url":"https://api.github.com/users/pulkkins/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkkins/subscriptions","organizations_url":"https://api.github.com/users/pulkkins/orgs","repos_url":"https://api.github.com/users/pulkkins/repos","events_url":"https://api.github.com/users/pulkkins/events{/privacy}","received_events_url":"https://api.github.com/users/pulkkins/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T12:36:57Z","updated_at":"2018-07-25T12:36:57Z","author_association":"MEMBER","body":"I reopened this issue because it appears in many other places in the verification module (e.g. the reliability diagram)."}}
{"actor":{"display_login":"pulkkins"}}