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

DistributedLDAModel predict top docs per topic

    XMLWordPrintableJSON

Details

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

    Description

      For each topic, return top documents based on topicDistributions.

      Synopsis:

      /**
       * @param maxDocuments  Max docs to return for each topic
       * @return Array over topics of (sorted top docs, corresponding doc-topic weights)
       */
      def topDocumentsPerTopic(maxDocuments: Int): Array[(Array[Long], Array[Double])]
      

      Note: We will need to make sure that the above return value format is Java-friendly.

      Attachments

        Issue Links

          Activity

            People

              meihuawu Meihua Wu
              josephkb Joseph K. Bradley
              Joseph K. Bradley Joseph K. Bradley
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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