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

Misleading JavaDoc comment in FPGrowth

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.2, 0.3
    • Fix Version/s: 0.4
    • Component/s: None
    • Labels:
      None

      Description

      The JavaDoc for org.apache.mahout.fpm.pfpgrowth.fpgrowth.FPGrowth.generateTopKFrequentPatterns(...) states that if the parameter returnableFeatures is null then patterns for every frequent item are generated.

      But this works only if you give the method an empty set, submitting null results in a NullPointerException. Either change the comment or do a null check here.

        Attachments

        1. MAHOUT-355.patch
          20 kB
          Sebastian Schelter

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: