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

DistributedLDAModel method for top topics per document

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0
    • MLlib
    • None

    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

              yuhaoyan yuhao yang
              josephkb Joseph K. Bradley
              Joseph K. Bradley 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