{"action":"opened","issue":{"url":"https://api.github.com/repos/CitrineInformatics/lolo/issues/191","repository_url":"https://api.github.com/repos/CitrineInformatics/lolo","labels_url":"https://api.github.com/repos/CitrineInformatics/lolo/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/CitrineInformatics/lolo/issues/191/comments","events_url":"https://api.github.com/repos/CitrineInformatics/lolo/issues/191/events","html_url":"https://github.com/CitrineInformatics/lolo/issues/191","id":469994794,"node_id":"MDU6SXNzdWU0Njk5OTQ3OTQ=","number":191,"title":"Bug: lolopy merit function broken","user":{"login":"zdelrosario","id":6273681,"node_id":"MDQ6VXNlcjYyNzM2ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/6273681?v=4","gravatar_id":"","url":"https://api.github.com/users/zdelrosario","html_url":"https://github.com/zdelrosario","followers_url":"https://api.github.com/users/zdelrosario/followers","following_url":"https://api.github.com/users/zdelrosario/following{/other_user}","gists_url":"https://api.github.com/users/zdelrosario/gists{/gist_id}","starred_url":"https://api.github.com/users/zdelrosario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdelrosario/subscriptions","organizations_url":"https://api.github.com/users/zdelrosario/orgs","repos_url":"https://api.github.com/users/zdelrosario/repos","events_url":"https://api.github.com/users/zdelrosario/events{/privacy}","received_events_url":"https://api.github.com/users/zdelrosario/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-18T21:20:55Z","updated_at":"2019-07-18T21:20:55Z","closed_at":null,"author_association":"NONE","body":"Calling `_call_lolo_merit()` with certain metrics throws a TypeError. Reprex below:\r\n\r\n```python\r\nfrom lolopy.metrics import _call_lolo_merit\r\n\r\ny_true = [1]\r\ny_pred = [1]\r\ny_std  = [0.1]\r\n\r\n# {Medcouple, RMSE, MSE, MAE, StandardRMSE, Skew, Median} \r\n# all throw a TypeError with the following call:\r\n_call_lolo_merit(\"RMSE\", y_true, y_pred, y_std = y_std)\r\n\r\n# {StandardConfidence and UncertaintyCorrelation} \r\n# do not throw this error\r\n```\r\n\r\nOn my machine, this reports:\r\n\r\n```python\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-2-ec224d5a4afe> in <module>\r\n----> 1 _call_lolo_merit(\"RMSE\", y_true, y_pred, y_std = y_std) # Throws an error: TypeError: 'JavaPackage' object is not callable\r\n\r\n~/anaconda3/lib/python3.7/site-packages/lolopy/metrics.py in _call_lolo_merit(metric_name, y_true, y_pred, y_std, *args)\r\n     41 \r\n     42     # Run the prediction result through the metric\r\n---> 43     return metric.evaluate(pred_result, y_true_java)\r\n     44 \r\n     45 \r\n\r\nTypeError: 'JavaPackage' object is not callable\r\n```"}}
{"actor":{"display_login":"zdelrosario"}}