Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-406

Inconsistent return values of different ItemSimilarity implementations

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4
    • Labels:
      None

      Description

      org.apache.mahout.cf.taste.impl.similarity.GenericItemSimilarity returns Double.NaN if you request the similarity for two itemIDs it doesn't know, while org.apache.mahout.cf.taste.impl.similarity.jdbc.AbstractJDBCItemSimilarity throws a NoSuchItemException.

      They should act consistently (and both return Double.NaN, I guess).

        Attachments

          Activity

            People

            • Assignee:
              srowen Sean R. Owen
              Reporter:
              ssc Sebastian Schelter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: