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

Wrong parameter order in LoglikelihoodSimilarity and DistributedLoglikelihoodVectorSimilarity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.5
    • Component/s: None
    • Labels:
      None

      Description

      org.apache.mahout.math.stats.LogLikelihood.logLikelihoodRatio expects the following counts:

      • A and B together (k_11)
      • B without A (k_12)
      • A without B (k_21)
      • Neither A nor B (k_22)

      It seems to me that in org.apache.mahout.cf.taste.impl.similarity.LogLikelihoodSimilarity and org.apache.mahout.math.hadoop.similarity.vector.DistributedLoglikelihoodVectorSimilarity the counts of k_12 and k_21 are given in the wrong order (B without A should come before A without B)

      Can someone confirm that?

        Attachments

          Activity

            People

            • Assignee:
              ssc Sebastian Schelter
              Reporter:
              ssc Sebastian Schelter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: