Github user takuti commented on the issue:
https://github.com/apache/incubator-hivemall/pull/107
Importantly, in case that the number of mappers is 1, fixing the bug in
`merge()` does not change the output value; you might see the same result
`0.42483920860540153` even if the bug exists.
Alternatively, let you test the following query (6 mappers will be shown
for each `select` statement), and check if its output is same as
`fmeasure(truth, predicted, '-average micro')`:
```sql
WITH data as (
select 1 as truth, 0 as predicted
union all
select 0 as truth, 1 as predicted
union all
select 0 as truth, 0 as predicted
union all
select 1 as truth, 1 as predicted
union all
select 0 as truth, 1 as predicted
union all
select 0 as truth, 0 as predicted
)
select
f1score(array(truth), array(predicted))
from data
;
```
If the bug has been fixed correctly, output should be same as
`fmeasure(truth, predicted, '-average micro) = 0.5`, while the buggy code
returns `f1score(array(truth), array(predicted)) = 1.0`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---