[ 
https://issues.apache.org/jira/browse/MAHOUT-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854077#action_12854077
 ] 

Sean Owen commented on MAHOUT-358:
----------------------------------

You mean that you do not see those negative values? Truly strange, since that 
means everything's working except output?

The output is simple:

  @Override
  public String toString() {
    StringBuilder result = new StringBuilder(200);
    result.append('[');
    boolean first = true;
    for (RecommendedItem item : recommended) {
      if (first) {
        first = false;
      } else {
        result.append(',');
      }
      result.append(item.getItemID());
      result.append(':');
      BigDecimal bd = new BigDecimal(item.getValue()).round(ROUNDING);
      result.append(bd.toPlainString());
    }
    result.append(']');
    return result.toString();
  }

I can remove the BigDecimal call, which is somewhat new, but still looks 
entirely correct to me.

Are you sure the output is really different?

> the pref value  field of output of 
> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob has negative
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-358
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-358
>             Project: Mahout
>          Issue Type: Test
>          Components: Collaborative Filtering
>    Affects Versions: 0.4
>            Reporter: Hui Wen Han
>         Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> In my test the input pref values all is positive.
> the output score value has negative value ,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to