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

Misleading JavaDoc comment in FPGrowth

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.2, 0.3
    • 0.4
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: