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

Bug in Auc computation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4
    • 0.5
    • None
    • None

    Description

      From Anil:

      Another bug: in Auc.java
      Classifier Evaluation :

      when the scores are tied -
      ...

      // how many negatives are tied?
      int k0 = 0;
      while (i0 < n0 && v0 == tieScore)

      Unknown macro: { k0++; i0++; v0 = scores[0].get(i0); }

      // and how many positives
      int k1 = 0;
      while (i1 < n1 && v1 == tieScore)

      Unknown macro: { k1++; i1++; v1 = scores[1].get(i1); }

      It sometimes goes Index out of bounds: Increment operation should be after accessing it

      while (i0 < n0 && v0 == tieScore)

      Unknown macro: { v0 = scores[0].get(i0); k0++; i0++; }

      // and how many positives
      int k1 = 0;
      while (i1 < n1 && v1 == tieScore)

      Unknown macro: { v1 = scores[1].get(i1); k1++; i1++; }

      Verily, he speaks truth.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdunning Ted Dunning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: