Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-9231

DistributedLDAModel method for top topics per document

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: MLlib
    • Labels:
      None
    • Target Version/s:

      Description

      Helper method in DistributedLDAModel of this form:

      /**
       * For each document, return the top k weighted topics for that document.
       * @return RDD of (doc ID, topic indices, topic weights)
       */
      def topTopicsPerDocument(k: Int): RDD[(Long, Array[Int], Array[Double])]
      

      I believe the above method signature will be Java-friendly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yuhaoyan yuhao yang
                Reporter:
                josephkb Joseph K. Bradley
                Shepherd:
                Joseph K. Bradley
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified